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

Issue 2033004: Implement fast load and call of arguments in the presence of eval.... (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

Implement fast load and call of arguments in the presence of eval. Load the arguments object from the context if there are no extensions objects on the way. Then load the argument with a keyed load ic. Committed: http://code.google.com/p/v8/source/detail?r=4633

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -52 lines) Patch
M src/arm/codegen-arm.cc View 1 2 5 chunks +58 lines, -17 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 5 chunks +62 lines, -18 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 5 chunks +60 lines, -17 lines 0 comments Download
A test/mjsunit/arguments-load-across-eval.js View 1 1 chunk +86 lines, -0 lines 0 comments Download
M test/mjsunit/property-load-across-eval.js View 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
The code for loads in the presence of eval is duplicated in the code generators ...
10 years, 7 months ago (2010-05-10 11:34:17 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/2033004/diff/1/3 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/2033004/diff/1/3#newcode4734 src/ia32/codegen-ia32.cc:4734: NOT_INSIDE_TYPEOF, How do we suddenly know we are ...
10 years, 7 months ago (2010-05-10 11:49:58 UTC) #2
Mads Ager (chromium)
10 years, 7 months ago (2010-05-10 12:20:46 UTC) #3
http://codereview.chromium.org/2033004/diff/1/3
File src/ia32/codegen-ia32.cc (right):

http://codereview.chromium.org/2033004/diff/1/3#newcode4734
src/ia32/codegen-ia32.cc:4734: NOT_INSIDE_TYPEOF,
On 2010/05/10 11:49:58, Erik Corry wrote:
> How do we suddenly know we are not in a typeof?

Whoops, we don't! Well spotted. Will add regression test.

http://codereview.chromium.org/2033004/diff/1/5
File test/mjsunit/arguments-load-across-eval.js (right):

http://codereview.chromium.org/2033004/diff/1/5#newcode77
test/mjsunit/arguments-load-across-eval.js:77: f();
On 2010/05/10 11:49:58, Erik Corry wrote:
> If you look at x and h here, which one do you get, and shouldn't we test that
> too?

You get x == 1 and h() == 2. I have added the test.

Powered by Google App Engine
This is Rietveld 408576698