Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Issue 2053003: Refactor the fast-case code for loading local/global variables and... (Closed)

Created:
10 years, 7 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Refactor the fast-case code for loading local/global variables and arguments in the presence of eval to avoid code duplication. Almost the same code was duplicated for loading properties and calling properties. Committed: http://code.google.com/p/v8/source/detail?r=4645

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -367 lines) Patch
M src/arm/codegen-arm.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 4 chunks +88 lines, -115 lines 0 comments Download
M src/ia32/codegen-ia32.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 4 chunks +92 lines, -125 lines 0 comments Download
M src/x64/codegen-x64.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 4 chunks +94 lines, -127 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
10 years, 7 months ago (2010-05-10 16:18:15 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/2053003/diff/1/2 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/2053003/diff/1/2#newcode2768 src/arm/codegen-arm.cc:2768: // spilled when jumping to these targets. Not ...
10 years, 7 months ago (2010-05-12 07:52:57 UTC) #2
Mads Ager (chromium)
10 years, 7 months ago (2010-05-12 08:41:36 UTC) #3
http://codereview.chromium.org/2053003/diff/1/2
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/2053003/diff/1/2#newcode2768
src/arm/codegen-arm.cc:2768: // spilled when jumping to these targets.
On 2010/05/12 07:52:57, Erik Corry wrote:
> Not actually true any more :-).  But we will be fixing these in new changes
over
> the next weeks.

Sounds great! :)

http://codereview.chromium.org/2053003/diff/1/2#newcode3777
src/arm/codegen-arm.cc:3777: call.Jump();
On 2010/05/12 07:52:57, Erik Corry wrote:
> call is only used inside these {} so it would be clearer to move the
declaration
> down here.

Done.

http://codereview.chromium.org/2053003/diff/1/2#newcode3779
src/arm/codegen-arm.cc:3779: frame_->EmitPush(r0);  // function
On 2010/05/12 07:52:57, Erik Corry wrote:
> Comments without caps and full stops are like gas cookers without safety
valves.
>  They don't need to be fixed unless you move them :-).

Yeah, most end-of-line comments like these are without caps and full stops, so I
left it this way.

http://codereview.chromium.org/2053003/diff/1/5
File src/ia32/codegen-ia32.h (right):

http://codereview.chromium.org/2053003/diff/1/5#newcode462
src/ia32/codegen-ia32.h:462: // types.
On 2010/05/12 07:52:57, Erik Corry wrote:
> So it expects to fall through to the 'slow' target?  Perhaps we should
document
> that.

Done.

Powered by Google App Engine
This is Rietveld 408576698