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

Issue 1634153002: [Interpreter] Adds support for const/let variables to interpreter. (Closed)

Created:
4 years, 10 months ago by mythria
Modified:
4 years, 10 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] Adds support for const/let variables to interpreter. Adds implementation and tests to support const/let variables in the interpreter. BUG=v8:4280, v8:4679 LOG=N Committed: https://crrev.com/90721a51a35644b5dca8116895830b1d10629f68 Cr-Commit-Position: refs/heads/master@{#33819}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebased the patch #

Total comments: 24

Patch Set 3 : Refactors the code for readability according to comments from Ross. #

Patch Set 4 : rebased the patch. #

Patch Set 5 : Fixes format of test-bytecode-generator.cc #

Patch Set 6 : Refactored VisitVariableAssignment. #

Patch Set 7 : Refactored VisitVariableAssignment. #

Total comments: 43

Patch Set 8 : Addresses comments. #

Patch Set 9 : Fixes two more comments. #

Patch Set 10 : Rebased the patch. #

Patch Set 11 : Fixed rebase errors. #

Total comments: 12

Patch Set 12 : Fixes comments. #

Patch Set 13 : Rebased the patch and fixes tests. #

Total comments: 5

Patch Set 14 : Fixes comments. #

Patch Set 15 : Rebased the patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1545 lines, -216 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +14 lines, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 chunks +187 lines, -24 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M src/interpreter/bytecodes.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +22 lines, -2 lines 0 comments Download
M test/cctest/cctest.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -9 lines 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +260 lines, -1 line 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +763 lines, -145 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +250 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +0 lines, -12 lines 0 comments Download
M test/test262/test262.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +0 lines, -18 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 67 (30 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/1
4 years, 10 months ago (2016-01-26 12:32:05 UTC) #2
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 10 months ago (2016-01-26 12:32:07 UTC) #4
mythria
PTAL. Thanks, Mythri https://codereview.chromium.org/1634153002/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1634153002/diff/1/src/interpreter/bytecode-generator.cc#newcode1617 src/interpreter/bytecode-generator.cc:1617: Handle<String> name) { This is used ...
4 years, 10 months ago (2016-01-26 13:08:33 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/1
4 years, 10 months ago (2016-01-26 13:16:47 UTC) #8
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 10 months ago (2016-01-26 13:16:48 UTC) #10
mythria
+orion
4 years, 10 months ago (2016-01-26 13:18:50 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/1
4 years, 10 months ago (2016-01-26 13:19:35 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/513) v8_linux_arm64_rel on ...
4 years, 10 months ago (2016-01-26 13:20:27 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/20001
4 years, 10 months ago (2016-01-26 13:29:06 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/10155)
4 years, 10 months ago (2016-01-26 13:41:29 UTC) #20
rmcilroy
A couple of high-level comments. Not looked at everything yet. https://codereview.chromium.org/1634153002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1634153002/diff/20001/src/interpreter/bytecode-generator.cc#newcode1513 ...
4 years, 10 months ago (2016-01-26 14:37:28 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/40001
4 years, 10 months ago (2016-02-01 09:44:27 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/9426) v8_linux_arm_rel on ...
4 years, 10 months ago (2016-02-01 09:45:24 UTC) #25
mythria
PTAL Thanks, Mythri https://codereview.chromium.org/1634153002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1634153002/diff/20001/src/interpreter/bytecode-generator.cc#newcode1513 src/interpreter/bytecode-generator.cc:1513: builder()->JumpIfNotHole(&end_label).LoadUndefined().Bind(&end_label); On 2016/01/26 14:37:28, rmcilroy wrote: ...
4 years, 10 months ago (2016-02-01 10:02:18 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/60001
4 years, 10 months ago (2016-02-01 10:33:05 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/10354)
4 years, 10 months ago (2016-02-01 10:36:40 UTC) #30
mythria
PTAL. Thanks, Mythri
4 years, 10 months ago (2016-02-02 11:03:59 UTC) #32
rmcilroy
Looking much better now. A few more comments, but pretty much there. https://codereview.chromium.org/1634153002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc ...
4 years, 10 months ago (2016-02-03 12:28:27 UTC) #33
mythria
Thanks for your comments. I fixed them. PTAL. Thanks, Mythri. https://codereview.chromium.org/1634153002/diff/120001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1634153002/diff/120001/src/interpreter/bytecode-generator.cc#newcode1602 ...
4 years, 10 months ago (2016-02-04 10:28:53 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/180001
4 years, 10 months ago (2016-02-04 10:55:38 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/915) v8_linux64_rel_ng_triggered on ...
4 years, 10 months ago (2016-02-04 11:09:41 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/200001
4 years, 10 months ago (2016-02-04 11:32:32 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-04 11:52:58 UTC) #42
rmcilroy
Looks great, thanks! LGTM. https://codereview.chromium.org/1634153002/diff/200001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1634153002/diff/200001/src/interpreter/bytecode-generator.cc#newcode1667 src/interpreter/bytecode-generator.cc:1667: // let x = (x ...
4 years, 10 months ago (2016-02-04 15:19:39 UTC) #43
mythria
Michi, could you please look at changes to bytecode-graph-builder? https://codereview.chromium.org/1634153002/diff/200001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1634153002/diff/200001/src/interpreter/bytecode-generator.cc#newcode1667 src/interpreter/bytecode-generator.cc:1667: ...
4 years, 10 months ago (2016-02-04 16:08:00 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/240001
4 years, 10 months ago (2016-02-04 17:12:05 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/11806)
4 years, 10 months ago (2016-02-04 17:29:48 UTC) #48
Michael Starzinger
LGTM with comments to address. Only looked at "compiler", didn't look at the rest. https://codereview.chromium.org/1634153002/diff/240001/src/compiler/bytecode-graph-builder.cc ...
4 years, 10 months ago (2016-02-08 11:54:08 UTC) #50
mythria
Thanks for your review. As explained in my comment, StrictNotEqual does not work. So I ...
4 years, 10 months ago (2016-02-08 13:22:33 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/260001
4 years, 10 months ago (2016-02-08 13:22:49 UTC) #53
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/9780) v8_linux64_rel_ng on ...
4 years, 10 months ago (2016-02-08 13:24:47 UTC) #55
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/280001
4 years, 10 months ago (2016-02-08 13:43:04 UTC) #57
Michael Starzinger
https://codereview.chromium.org/1634153002/diff/240001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1634153002/diff/240001/src/compiler/bytecode-graph-builder.cc#newcode1522 src/compiler/bytecode-graph-builder.cc:1522: Node* condition = NewNode(javascript()->StrictEqual(), accumulator, On 2016/02/08 13:22:33, mythria ...
4 years, 10 months ago (2016-02-08 13:57:45 UTC) #58
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 14:03:23 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634153002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634153002/280001
4 years, 10 months ago (2016-02-08 14:10:26 UTC) #63
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 10 months ago (2016-02-08 14:14:45 UTC) #65
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 14:15:03 UTC) #67
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/90721a51a35644b5dca8116895830b1d10629f68
Cr-Commit-Position: refs/heads/master@{#33819}

Powered by Google App Engine
This is Rietveld 408576698