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

Issue 1373903005: [Interpreter] Add for/while/do support to the bytecode generator. (Closed)

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

Description

[Interpreter] Add for/while/do support to the bytecode generator. Improve bytecode generation for if when there's no else clause. Display target addresses for jump instructions in Bytecode::Disassemble(). BUG=v8:4280 LOG=N Committed: https://crrev.com/a7e16e513241f6d62f35e763c14aff5ca445195e Cr-Commit-Position: refs/heads/master@{#31052}

Patch Set 1 #

Patch Set 2 : Compilation fixes for msvc/gcc and semantics of do...while. #

Patch Set 3 : Rebase. #

Total comments: 2

Patch Set 4 : Incorporate feedback from mstarzinger which revealed use after destruction bug. #

Total comments: 21

Patch Set 5 : Incorporate comments / re-work IfBuilder. #

Total comments: 10

Patch Set 6 : Incorporate comments on patch set 5. #

Patch Set 7 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+644 lines, -89 lines) Patch
M BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 6 chunks +6 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 4 5 4 chunks +13 lines, -9 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 19 chunks +188 lines, -55 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M src/interpreter/bytecodes.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
A src/interpreter/control-flow-builders.h View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
A src/interpreter/control-flow-builders.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 5 6 8 chunks +280 lines, -21 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
oth
mstarzinger@chromium.org: Please review changes in interpreter. rmcilroy@chromium.org: Please review all.
5 years, 2 months ago (2015-09-30 12:57:03 UTC) #2
Michael Starzinger
https://codereview.chromium.org/1373903005/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1373903005/diff/40001/src/interpreter/bytecode-generator.cc#newcode28 src/interpreter/bytecode-generator.cc:28: virtual ~ControlScope() {} Scope popping seems to be missing ...
5 years, 2 months ago (2015-09-30 13:27:36 UTC) #3
oth
Thanks Michael, code fixed and added a test for nested loops. https://codereview.chromium.org/1373903005/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): ...
5 years, 2 months ago (2015-09-30 15:54:46 UTC) #4
Michael Starzinger
LGTM from my end. https://codereview.chromium.org/1373903005/diff/60001/src/interpreter/control-flow-builders.h File src/interpreter/control-flow-builders.h (right): https://codereview.chromium.org/1373903005/diff/60001/src/interpreter/control-flow-builders.h#newcode52 src/interpreter/control-flow-builders.h:52: ZoneVector<BytecodeLabel> continue_labels_; nit: The naming ...
5 years, 2 months ago (2015-10-01 08:55:24 UTC) #5
rmcilroy
A couple of minor comments, but looks great! LGTM once comments are addressed. https://codereview.chromium.org/1373903005/diff/60001/src/interpreter/bytecode-generator.cc File ...
5 years, 2 months ago (2015-10-01 09:18:56 UTC) #6
oth
Thanks for the feedback. Revised IfBuilder. PTAL. Thanks! https://codereview.chromium.org/1373903005/diff/60001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1373903005/diff/60001/src/interpreter/bytecode-generator.cc#newcode87 src/interpreter/bytecode-generator.cc:87: } ...
5 years, 2 months ago (2015-10-01 11:43:03 UTC) #7
Michael Starzinger
https://codereview.chromium.org/1373903005/diff/60001/src/interpreter/control-flow-builders.h File src/interpreter/control-flow-builders.h (right): https://codereview.chromium.org/1373903005/diff/60001/src/interpreter/control-flow-builders.h#newcode40 src/interpreter/control-flow-builders.h:40: BytecodeLabel* continue_label() { return &continue_label_; } On 2015/10/01 11:43:02, ...
5 years, 2 months ago (2015-10-01 11:49:37 UTC) #8
rmcilroy
A last few nits, but LGTM! https://codereview.chromium.org/1373903005/diff/60001/test/cctest/interpreter/test-bytecode-generator.cc File test/cctest/interpreter/test-bytecode-generator.cc (right): https://codereview.chromium.org/1373903005/diff/60001/test/cctest/interpreter/test-bytecode-generator.cc#newcode945 test/cctest/interpreter/test-bytecode-generator.cc:945: {unused, unused, unused, ...
5 years, 2 months ago (2015-10-01 12:12:08 UTC) #9
oth
Thanks! https://codereview.chromium.org/1373903005/diff/60001/test/cctest/interpreter/test-bytecode-generator.cc File test/cctest/interpreter/test-bytecode-generator.cc (right): https://codereview.chromium.org/1373903005/diff/60001/test/cctest/interpreter/test-bytecode-generator.cc#newcode945 test/cctest/interpreter/test-bytecode-generator.cc:945: {unused, unused, unused, unused}}, On 2015/10/01 12:12:07, rmcilroy ...
5 years, 2 months ago (2015-10-01 13:13:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373903005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373903005/120001
5 years, 2 months ago (2015-10-01 13:53:11 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-01 15:04:16 UTC) #14
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 15:04:38 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a7e16e513241f6d62f35e763c14aff5ca445195e
Cr-Commit-Position: refs/heads/master@{#31052}

Powered by Google App Engine
This is Rietveld 408576698