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

Issue 2242463002: [interpreter] VisitForTest for bytecode generator (Closed)

Created:
4 years, 4 months ago by klaasb
Modified:
4 years, 4 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] VisitForTest for bytecode generator Adds TestResultScope and uses it to directly jump/fall through to the correct branch in expressions used as branch conditions. Should enable nicer TurboFan-graphs for easier control-flow transformations in the future. BUG=v8:4280 LOG=n Committed: https://crrev.com/935340a4c51bc35f472cef4a1d978882e3040c98 Cr-Commit-Position: refs/heads/master@{#38634}

Patch Set 1 #

Patch Set 2 : remove unused/refactored code, add comment #

Total comments: 57

Patch Set 3 : rebase and refactor for comments #

Patch Set 4 : add new file to BUILD.gn #

Total comments: 2

Patch Set 5 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -89 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 14 chunks +199 lines, -40 lines 0 comments Download
M src/interpreter/bytecode-label.h View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
A src/interpreter/bytecode-label.cc View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden View 3 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Conditional.golden View 2 chunks +49 lines, -14 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 12 chunks +16 lines, -20 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 4 chunks +7 lines, -7 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/IfConditions.golden View 1 chunk +44 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M test/cctest/test-func-name-inference.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
klaasb
Ross, Michi, please take a look. The names VisitFor"Control" and the related "Control"things I don't ...
4 years, 4 months ago (2016-08-11 16:27:16 UTC) #2
rmcilroy
Looks great overall. Bunch of comments but mostly just nits. https://codereview.chromium.org/2242463002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2242463002/diff/20001/src/interpreter/bytecode-generator.cc#newcode539 ...
4 years, 4 months ago (2016-08-12 11:15:27 UTC) #3
klaasb
https://codereview.chromium.org/2242463002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2242463002/diff/20001/src/interpreter/bytecode-generator.cc#newcode539 src/interpreter/bytecode-generator.cc:539: enum class BytecodeGenerator::ControlFallthrough { THEN, ELSE, NONE }; On ...
4 years, 4 months ago (2016-08-12 16:00:13 UTC) #4
rmcilroy
LGTM, but please comment on the test-function-name-inference test failure without the change. https://codereview.chromium.org/2242463002/diff/20001/test/cctest/test-func-name-inference.cc File test/cctest/test-func-name-inference.cc ...
4 years, 4 months ago (2016-08-15 09:37:11 UTC) #14
klaasb
See rationale on test-func-name-inference.cc changes. https://codereview.chromium.org/2242463002/diff/20001/test/cctest/test-func-name-inference.cc File test/cctest/test-func-name-inference.cc (right): https://codereview.chromium.org/2242463002/diff/20001/test/cctest/test-func-name-inference.cc#newcode305 test/cctest/test-func-name-inference.cc:305: "var x = 0;\n" ...
4 years, 4 months ago (2016-08-15 11:53:04 UTC) #15
rmcilroy
Still LGTM https://codereview.chromium.org/2242463002/diff/20001/test/cctest/test-func-name-inference.cc File test/cctest/test-func-name-inference.cc (right): https://codereview.chromium.org/2242463002/diff/20001/test/cctest/test-func-name-inference.cc#newcode305 test/cctest/test-func-name-inference.cc:305: "var x = 0;\n" On 2016/08/15 11:53:04, ...
4 years, 4 months ago (2016-08-15 12:37:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2242463002/80001
4 years, 4 months ago (2016-08-15 12:47:21 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-15 13:10:49 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 13:11:11 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/935340a4c51bc35f472cef4a1d978882e3040c98
Cr-Commit-Position: refs/heads/master@{#38634}

Powered by Google App Engine
This is Rietveld 408576698