Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1050)

Issue 1958046: Remove PushRel in exception handling (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 11 months ago by ebo
Modified:
14 years, 11 months ago
Reviewers:
Reid Kleckner, strombrg
CC:
unladen-swallow_googlegroups.com
Base URL:
http://unladen-swallow.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -31 lines) Patch
M JIT/llvm_fbuilder.h View 3 chunks +4 lines, -1 line 0 comments Download
M JIT/llvm_fbuilder.cc View 6 chunks +50 lines, -29 lines 1 comment Download
M JIT/opcodes/block.cc View 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 4
ebo
This removes PushRel from exception handling. Exceptions are stored in extra allocas and wrote on ...
14 years, 11 months ago (2010-08-17 06:30:03 UTC) #1
Reid Kleckner
LGTM http://codereview.appspot.com/1958046/diff/1/4 File JIT/llvm_fbuilder.cc (right): http://codereview.appspot.com/1958046/diff/1/4#newcode601 JIT/llvm_fbuilder.cc:601: // Just store the exception in allocas. I'd ...
14 years, 11 months ago (2010-08-17 17:54:15 UTC) #2
strombrg_gmail.com
A half-rhetorical question: Has alloca grown more portable over the years? alloca used to be ...
14 years, 11 months ago (2010-08-30 00:28:40 UTC) #3
Reid Kleckner
14 years, 11 months ago (2010-08-30 14:51:47 UTC) #4
In LLVM, alloca is the name of the instruction that allocates stack
space.  I think you can give it an argument that isn't a constant, but
generally speaking you give it a constant argument and it gives you
some local stack space.  It's used for all of your local variables.

Reid

On Sun, Aug 29, 2010 at 5:28 PM, Dan Stromberg <strombrg@gmail.com> wrote:
>
> A half-rhetorical question:
> Has alloca grown more portable over the years?
> alloca used to be somewhat frowned upon.  Granted it's convenient when you
> have it, but at least at one time not all systems had it:
>
> http://compilers.iecc.com/comparch/article/91-12-079
> On Tue, Aug 17, 2010 at 10:54 AM, <reid.kleckner@gmail.com> wrote:
>>
>> LGTM
>>
>>
>> http://codereview.appspot.com/1958046/diff/1/4
>> File JIT/llvm_fbuilder.cc (right):
>>
>> http://codereview.appspot.com/1958046/diff/1/4#newcode601
>> JIT/llvm_fbuilder.cc:601: // Just store the exception in allocas.
>> I'd elaborate here along the lines of:
>> We don't know which stack slots the exc triplet is going into until
>> later, so we save it in an alloca and let the opcode implementations
>> copy it into the correct stack slots.
>>
>> http://codereview.appspot.com/1958046/
>
>
>
> --
> Dan Stromberg
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b