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

Issue 9837002: Support arguments object access from inlined functions. (Closed)

Created:
8 years, 9 months ago by Vyacheslav Egorov (Chromium)
Modified:
8 years, 9 months ago
Reviewers:
fschneider
CC:
v8-dev
Visibility:
Public.

Description

Support arguments object access from inlined functions. R=fschneider@chromium.org TEST=test/mjsunit/compiler/inline-arguments.js Committed: https://code.google.com/p/v8/source/detail?r=11109

Patch Set 1 #

Patch Set 2 : revert heap.cc #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -100 lines) Patch
M src/arm/lithium-arm.h View 3 chunks +22 lines, -2 lines 0 comments Download
M src/arm/lithium-arm.cc View 3 chunks +17 lines, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 2 chunks +18 lines, -9 lines 0 comments Download
M src/hydrogen.h View 5 chunks +19 lines, -2 lines 0 comments Download
M src/hydrogen.cc View 13 chunks +93 lines, -41 lines 0 comments Download
M src/hydrogen-instructions.h View 3 chunks +23 lines, -3 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 2 chunks +26 lines, -17 lines 2 comments Download
M src/ia32/lithium-ia32.h View 3 chunks +22 lines, -2 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 3 chunks +16 lines, -2 lines 0 comments Download
M src/runtime.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 2 chunks +25 lines, -16 lines 0 comments Download
M src/x64/lithium-x64.h View 3 chunks +22 lines, -2 lines 0 comments Download
M src/x64/lithium-x64.cc View 3 chunks +17 lines, -2 lines 0 comments Download
M test/mjsunit/compiler/inline-arguments.js View 1 chunk +32 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Vyacheslav Egorov (Chromium)
8 years, 9 months ago (2012-03-22 09:22:36 UTC) #1
fschneider
LGTM. https://chromiumcodereview.appspot.com/9837002/diff/1017/src/ia32/lithium-codegen-ia32.cc File src/ia32/lithium-codegen-ia32.cc (right): https://chromiumcodereview.appspot.com/9837002/diff/1017/src/ia32/lithium-codegen-ia32.cc#newcode2547 src/ia32/lithium-codegen-ia32.cc:2547: __ lea(result, Operand(esp, -2 * kPointerSize)); Maybe it ...
8 years, 9 months ago (2012-03-22 10:30:19 UTC) #2
Vyacheslav Egorov (Chromium)
8 years, 9 months ago (2012-03-22 12:24:53 UTC) #3
https://chromiumcodereview.appspot.com/9837002/diff/1017/src/ia32/lithium-cod...
File src/ia32/lithium-codegen-ia32.cc (right):

https://chromiumcodereview.appspot.com/9837002/diff/1017/src/ia32/lithium-cod...
src/ia32/lithium-codegen-ia32.cc:2547: __ lea(result, Operand(esp, -2 *
kPointerSize));
On 2012/03/22 10:30:19, fschneider wrote:
> Maybe it would be nicer to have the result of arguments-elements point right
to
> the start of the arguments in both cases (inlined and non-inlined), instead of
> having the LArgumentsAccessAt compensate for the fixed delta.

discussed over chat, agreed not to change it for now.

https://chromiumcodereview.appspot.com/9837002/diff/1017/test/mjsunit/compile...
File test/mjsunit/compiler/inline-arguments.js (right):

https://chromiumcodereview.appspot.com/9837002/diff/1017/test/mjsunit/compile...
test/mjsunit/compiler/inline-arguments.js:138: return toarr_inner(marker, a/2,
b/2, c/2);
On 2012/03/22 10:30:19, fschneider wrote:
> Please also add a test where inlining happens inside an argument-expression:
> 
> return foo(uninlined(0), toarr_inner(marker, a/2, b/2, c/2));

Done.

Powered by Google App Engine
This is Rietveld 408576698