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

Issue 20419: Optimize loads from variables that might be shadowed by variables... (Closed)

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

Description

Optimize loads from variables that might be shadowed by variables introduced by eval. In the cases where calls to eval have not introduced any variables, we do not need to perform a runtime call. Instead, we verify that the context extension objects have not been created and perform a direct load. Not implemented for ARM yet and the scope resolution code could use some better abstractions. I'd like to do that in a separate changelist. Committed: http://code.google.com/p/v8/source/detail?r=1298

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -48 lines) Patch
M src/codegen-arm.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M src/codegen-ia32.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M src/codegen-ia32.cc View 1 2 3 4 5 6 7 8 7 chunks +97 lines, -8 lines 0 comments Download
M src/contexts.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M src/scopes.h View 1 2 3 4 5 6 8 3 chunks +11 lines, -4 lines 0 comments Download
M src/scopes.cc View 1 2 3 4 5 6 7 8 11 chunks +45 lines, -22 lines 0 comments Download
M src/variables.h View 3 chunks +35 lines, -4 lines 0 comments Download
M src/variables.cc View 3 chunks +3 lines, -1 line 0 comments Download
A test/mjsunit/global-load-from-eval-in-with.js View 7 1 chunk +59 lines, -0 lines 0 comments Download
A test/mjsunit/local-load-from-eval.js View 1 chunk +37 lines, -0 lines 0 comments Download
A test/mjsunit/property-load-across-eval.js View 4 5 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (chromium)
11 years, 10 months ago (2009-02-17 13:18:24 UTC) #1
Kasper Lund
LGTM. Do we have good test coverage of this stuff already? http://codereview.chromium.org/20419/diff/17/25 File src/codegen-ia32.cc (right): ...
11 years, 10 months ago (2009-02-17 13:39:02 UTC) #2
Mads Ager (chromium)
On 2009/02/17 13:39:02, Kasper Lund wrote: > LGTM. Do we have good test coverage of ...
11 years, 10 months ago (2009-02-18 09:39:28 UTC) #3
Mads Ager (chromium)
OK, hang on. No need to review this yet. We need a "slow" fast-case for ...
11 years, 10 months ago (2009-02-18 10:16:18 UTC) #4
Mads Ager (chromium)
11 years, 10 months ago (2009-02-18 12:54:20 UTC) #5
Turns out I do not have enough scope information (yet) to do the "slow"
fast-case for eval scopes.  I have converged on the current patch set for now. 
Could you have a look?

Powered by Google App Engine
This is Rietveld 408576698