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

Issue 2027002: Implement fast calls of functions in the presence of eval (if the 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 calls of functions in the presence of eval (if the eval calls do not introduce new bindings). The infrastructure is already in place for fast loads from context slots in the presence of eval. This change simply uses that infrastructure for calls as well as loads. Committed: http://code.google.com/p/v8/source/detail?r=4609

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -9 lines) Patch
M src/arm/codegen-arm.cc View 1 2 3 chunks +53 lines, -3 lines 2 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 chunks +61 lines, -4 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 3 chunks +58 lines, -2 lines 0 comments Download
M test/mjsunit/property-load-across-eval.js View 1 2 3 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mads Ager (chromium)
10 years, 7 months ago (2010-05-06 16:43:30 UTC) #1
Erik Corry
LGTM apart from the behaviour with const. http://codereview.chromium.org/2027002/diff/5001/6004 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/2027002/diff/5001/6004#newcode3705 src/arm/codegen-arm.cc:3705: // JavaScript ...
10 years, 7 months ago (2010-05-07 09:39:05 UTC) #2
Mads Ager (chromium)
Thanks Erik, good catch on the const issue! :) http://codereview.chromium.org/2027002/diff/5001/6004 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/2027002/diff/5001/6004#newcode3705 src/arm/codegen-arm.cc:3705: ...
10 years, 7 months ago (2010-05-07 10:18:56 UTC) #3
Erik Corry
10 years, 7 months ago (2010-05-07 10:38:31 UTC) #4
LGTM

http://codereview.chromium.org/2027002/diff/11001/12001
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/2027002/diff/11001/12001#newcode3708
src/arm/codegen-arm.cc:3708: //  with (obj) foo(1, 2, 3)  // foo is in obj
As I understand it the point of this code is to go fast when foo could be in
obj, but in fact it isn't.  So I would prefer "foo may be in obj."  Note the
full stop.

http://codereview.chromium.org/2027002/diff/11001/12001#newcode3713
src/arm/codegen-arm.cc:3713: //    f();  // f could be in extension object
Full stop.

Powered by Google App Engine
This is Rietveld 408576698