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

Issue 7068009: Pass undefined to JS builtins when called with implicit receiver. (Closed)

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

Description

Pass undefined to JS builtins when called with implicit receiver. A couple of corner cases have to be treated specially to not break everything: eval and getter/setter definitions. R=lrn@chromium.org BUG=v8:1365 TEST=mjsunit/regress/regress-1365.js Committed: http://code.google.com/p/v8/source/detail?r=8073

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments #

Patch Set 3 : Update sputnik test expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -134 lines) Patch
M src/arm/builtins-arm.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/compiler.h View 1 3 chunks +13 lines, -2 lines 0 comments Download
M src/compiler.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M src/handles.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/heap.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/hydrogen.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
src/mips/builtins-mips.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/objects.h View 1 3 chunks +11 lines, -11 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/runtime.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/v8natives.js View 1 6 chunks +28 lines, -15 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-1170.js View 2 chunks +5 lines, -6 lines 0 comments Download
M test/mjsunit/regress/regress-124.js View 2 chunks +4 lines, -4 lines 0 comments Download
A + test/mjsunit/regress/regress-1365.js View 1 1 chunk +31 lines, -32 lines 0 comments Download
M test/mjsunit/regress/regress-485.js View 1 chunk +0 lines, -5 lines 0 comments Download
M test/mozilla/mozilla.status View 1 1 chunk +4 lines, -0 lines 0 comments Download
M test/sputnik/sputnik.status View 1 2 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mads Ager (chromium)
9 years, 7 months ago (2011-05-25 12:48:03 UTC) #1
Mads Ager (chromium)
This cannot land before we have removed support for calling regexps as functions.
9 years, 7 months ago (2011-05-25 12:48:28 UTC) #2
Lasse Reichstein
LGTM http://codereview.chromium.org/7068009/diff/1/src/compiler.h File src/compiler.h (right): http://codereview.chromium.org/7068009/diff/1/src/compiler.h#newcode92 src/compiler.h:92: void MarkAsES5Native() { Why ES5Native and not just ...
9 years, 7 months ago (2011-05-26 08:26:55 UTC) #3
Mads Ager (chromium)
http://codereview.chromium.org/7068009/diff/1/src/compiler.h File src/compiler.h (right): http://codereview.chromium.org/7068009/diff/1/src/compiler.h#newcode92 src/compiler.h:92: void MarkAsES5Native() { On 2011/05/26 08:26:55, Lasse Reichstein wrote: ...
9 years, 7 months ago (2011-05-26 10:14:07 UTC) #4
Mads Ager (chromium)
9 years, 7 months ago (2011-05-26 10:50:05 UTC) #5
Added updated sputnik test expectations. A bunch of tests expect call of
builtins through variables to pass in the global object which was true in ES3
but no longer in ES5.

Powered by Google App Engine
This is Rietveld 408576698