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

Issue 6474026: Strict mode assignment to undefined reference. (Closed)

Created:
9 years, 10 months ago by Martin Maly
Modified:
9 years, 7 months ago
Visibility:
Public.

Description

Strict mode assignment to undefined reference. Simple assignments (x = <value>) use CODE_TARGET_CONTEXT. StoreIC stores its own strictness in extra_ic_state. The strcitness is propagated as further ic stubs are generated. BUG= TEST=es5conform, test/mjsunit/strict-mode.js

Patch Set 1 #

Total comments: 3

Patch Set 2 : Code review feedback. #

Patch Set 3 : Fix presubmit. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -151 lines) Patch
M .gitignore View 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/full-codegen-arm.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/arm/ic-arm.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/arm/virtual-frame-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/virtual-frame-arm.cc View 1 chunk +10 lines, -3 lines 0 comments Download
M src/assembler.h View 1 chunk +1 line, -1 line 0 comments Download
M src/builtins.h View 2 chunks +115 lines, -53 lines 0 comments Download
M src/builtins.cc View 4 chunks +33 lines, -8 lines 0 comments Download
M src/compiler.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/full-codegen.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/ia32/ic-ia32.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/ia32/virtual-frame-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/virtual-frame-ia32.cc View 1 chunk +11 lines, -3 lines 0 comments Download
M src/ic.h View 4 chunks +21 lines, -2 lines 0 comments Download
M src/ic.cc View 11 chunks +40 lines, -17 lines 0 comments Download
M src/objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +4 lines, -2 lines 0 comments Download
M src/serialize.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/stub-cache.h View 1 2 3 chunks +19 lines, -8 lines 1 comment Download
M src/stub-cache.cc View 5 chunks +31 lines, -19 lines 0 comments Download
M src/x64/codegen-x64.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/x64/ic-x64.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/x64/virtual-frame-x64.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/virtual-frame-x64.cc View 1 chunk +10 lines, -3 lines 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/es5conform/es5conform.status View 1 chunk +0 lines, -3 lines 0 comments Download
M test/mjsunit/strict-mode.js View 1 1 chunk +38 lines, -0 lines 0 comments Download
M tools/v8.xcodeproj/project.pbxproj View 4 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Martin Maly
Hi Mads, I think the code is ready for the first look. The assignment to ...
9 years, 10 months ago (2011-02-11 02:01:28 UTC) #1
MarkM
http://codereview.chromium.org/6474026/diff/1/test/mjsunit/strict-mode.js File test/mjsunit/strict-mode.js (right): http://codereview.chromium.org/6474026/diff/1/test/mjsunit/strict-mode.js#newcode352 test/mjsunit/strict-mode.js:352: testAssignToUndefined(true); Why are you calling this three times for ...
9 years, 10 months ago (2011-02-11 03:06:59 UTC) #2
Mads Ager (chromium)
LGTM This definitely seems like the right way of handling this. The ICs will bailout ...
9 years, 10 months ago (2011-02-11 08:08:09 UTC) #3
Søren Thygesen Gjesse
LGTM, for the test-debug.cc change. I don't think changes to the debugger is required for ...
9 years, 10 months ago (2011-02-11 08:09:18 UTC) #4
Martin Maly
Thanks for the review! Fixed the test (added the loop tests) and committed. http://codereview.chromium.org/6474026/diff/1/test/mjsunit/strict-mode.js File ...
9 years, 10 months ago (2011-02-11 21:43:28 UTC) #5
Martin Maly
Fix to presubmit. http://codereview.chromium.org/6474026/diff/12003/src/stub-cache.h File src/stub-cache.h (right): http://codereview.chromium.org/6474026/diff/12003/src/stub-cache.h#newcode628 src/stub-cache.h:628: explicit StoreStubCompiler(Code::ExtraICState extra_ic_state) Fixing presubmit.
9 years, 10 months ago (2011-02-13 16:23:34 UTC) #6
Martin Maly
9 years, 10 months ago (2011-02-13 16:43:10 UTC) #7
Fixing presubmit.

Powered by Google App Engine
This is Rietveld 408576698