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

Issue 1845223006: [Interpreter] Handles legacy constants in strict mode. (Closed)

Created:
4 years, 8 months ago by mythria
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Handles legacy constants in strict mode. Function bindings are the only variables in LEGACY_CONST mode. (https://codereview.chromium.org/1819123002/). Since these variables can also be accessed in strict mode functions we should support handling such variables. Assigning to a legacy constant throws a TypeError in strict mode. Also fixes hydrogen.cc to throw a TypeError for legacy constants. BUG=v8:4280, chromium:599068 LOG=N TBR=rmcilroy@chromium.org Committed: https://crrev.com/8982cb5c70c8371256c6e9183d3ef3b33e46f056 Cr-Commit-Position: refs/heads/master@{#35383}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixes the implementation and modifies the test. #

Patch Set 3 : Fixed compound assignments in hydrogen. Updated test as suggested by mstarzinger@ offline. #

Total comments: 6

Patch Set 4 : Fixed nits and added another test. #

Patch Set 5 : Addressed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -15 lines) Patch
M src/crankshaft/hydrogen.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 3 chunks +18 lines, -13 lines 0 comments Download
A test/mjsunit/regress/regress-599068-func-bindings.js View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
mythria
PTAL. Thanks, Mythri
4 years, 8 months ago (2016-04-01 13:10:46 UTC) #2
Michael Starzinger
https://codereview.chromium.org/1845223006/diff/1/test/mjsunit/ignition/regress-599068-func-bindings.js File test/mjsunit/ignition/regress-599068-func-bindings.js (right): https://codereview.chromium.org/1845223006/diff/1/test/mjsunit/ignition/regress-599068-func-bindings.js#newcode8 test/mjsunit/ignition/regress-599068-func-bindings.js:8: encodeURI += 'function'; Maybe I am missing something here, ...
4 years, 8 months ago (2016-04-01 13:29:13 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845223006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845223006/20001
4 years, 8 months ago (2016-04-01 15:27:49 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 15:51:38 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845223006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845223006/40001
4 years, 8 months ago (2016-04-01 16:18:17 UTC) #11
mythria
Thanks Michi for tests and suggestions. I implemented another fix to hydrogen as discussed offline. ...
4 years, 8 months ago (2016-04-01 16:24:49 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 16:40:21 UTC) #14
Michael Starzinger
LGTM with two nits. https://codereview.chromium.org/1845223006/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1845223006/diff/40001/src/interpreter/bytecode-generator.cc#newcode2079 src/interpreter/bytecode-generator.cc:2079: if (is_strict(language_mode())) { nit: The ...
4 years, 8 months ago (2016-04-04 12:02:24 UTC) #15
rmcilroy
LGTM with Michi's comments addressed. https://codereview.chromium.org/1845223006/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1845223006/diff/40001/src/interpreter/bytecode-generator.cc#newcode2049 src/interpreter/bytecode-generator.cc:2049: // in sloppy mode. ...
4 years, 8 months ago (2016-04-05 08:44:21 UTC) #16
mythria
Thanks, I fixed the comments and also added a test for lookup slots. Thanks, Mythri ...
4 years, 8 months ago (2016-04-11 10:10:05 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845223006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845223006/80001
4 years, 8 months ago (2016-04-11 10:10:27 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-11 10:34:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845223006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845223006/80001
4 years, 8 months ago (2016-04-11 12:00:54 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-11 12:03:07 UTC) #26
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 12:04:09 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8982cb5c70c8371256c6e9183d3ef3b33e46f056
Cr-Commit-Position: refs/heads/master@{#35383}

Powered by Google App Engine
This is Rietveld 408576698