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

Issue 1458603012: [Interpreter] Add CreateClosure to BytecodeGraphBuilder. (Closed)

Created:
5 years, 1 month ago by oth
Modified:
5 years 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 CreateClosure to BytecodeGraphBuilder. Adds code and tests to support CreateClosure bytecode when building graphs. BUG=v8:4280 LOG=N Committed: https://crrev.com/4cceb11b0929abcbc82bf0854554a9b66003335d Cr-Commit-Position: refs/heads/master@{#32224}

Patch Set 1 #

Patch Set 2 : Compilation fix for MSVC. #

Patch Set 3 : Try, try, try again. #

Patch Set 4 : Take IV. #

Total comments: 6

Patch Set 5 : Revised to avoid CreateClosureParameters in unittest. #

Total comments: 2

Patch Set 6 : Better matching. #

Total comments: 4

Patch Set 7 : Revise CreateClosure bytecode per review and simplify unittest. #

Total comments: 3

Patch Set 8 : Remove unneeded includes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -92 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 4 5 6 1 chunk +11 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 2 chunks +16 lines, -5 lines 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 5 6 30 chunks +49 lines, -74 lines 0 comments Download
M test/unittests/compiler/bytecode-graph-builder-unittest.cc View 1 2 3 4 5 6 4 chunks +52 lines, -2 lines 0 comments Download
M test/unittests/compiler/node-test-utils.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.cc View 1 2 3 4 5 6 3 chunks +60 lines, -0 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 22 (5 generated)
oth
Benedikt, Mythrie: PTAL. Thanks!
5 years, 1 month ago (2015-11-20 15:10:57 UTC) #2
mythria
lgtm
5 years, 1 month ago (2015-11-20 17:01:00 UTC) #3
Michael Starzinger
https://codereview.chromium.org/1458603012/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1458603012/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode648 src/compiler/bytecode-graph-builder.cc:648: OpParameter<Handle<SharedFunctionInfo>>(accumulator)); Not sure what this OpParameter call is trying ...
5 years, 1 month ago (2015-11-20 17:11:43 UTC) #5
oth
Thanks Michi, comments incorporated. https://codereview.chromium.org/1458603012/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1458603012/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode648 src/compiler/bytecode-graph-builder.cc:648: OpParameter<Handle<SharedFunctionInfo>>(accumulator)); On 2015/11/20 17:11:43, Michael ...
5 years, 1 month ago (2015-11-21 14:19:47 UTC) #6
oth
Thanks Michi, comments incorporated. https://codereview.chromium.org/1458603012/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1458603012/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode648 src/compiler/bytecode-graph-builder.cc:648: OpParameter<Handle<SharedFunctionInfo>>(accumulator)); On 2015/11/20 17:11:43, Michael ...
5 years, 1 month ago (2015-11-21 14:19:47 UTC) #7
Benedikt Meurer
https://codereview.chromium.org/1458603012/diff/80001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1458603012/diff/80001/src/compiler/bytecode-graph-builder.cc#newcode648 src/compiler/bytecode-graph-builder.cc:648: HeapObjectMatcher shared_info_matcher(accumulator); Why do you need a HeapObjectMatcher at ...
5 years, 1 month ago (2015-11-22 19:00:53 UTC) #8
oth
Thanks Benedikt, can you confirm I understood correctly? https://codereview.chromium.org/1458603012/diff/80001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1458603012/diff/80001/src/compiler/bytecode-graph-builder.cc#newcode648 src/compiler/bytecode-graph-builder.cc:648: HeapObjectMatcher ...
5 years, 1 month ago (2015-11-22 21:43:59 UTC) #9
Benedikt Meurer
On 2015/11/22 21:43:59, oth wrote: > Thanks Benedikt, can you confirm I understood correctly? > ...
5 years, 1 month ago (2015-11-23 09:01:39 UTC) #10
Michael Starzinger
https://codereview.chromium.org/1458603012/diff/100001/test/unittests/compiler/bytecode-graph-builder-unittest.cc File test/unittests/compiler/bytecode-graph-builder-unittest.cc (right): https://codereview.chromium.org/1458603012/diff/100001/test/unittests/compiler/bytecode-graph-builder-unittest.cc#newcode842 test/unittests/compiler/bytecode-graph-builder-unittest.cc:842: Handle<SharedFunctionInfo> shared_info = inner_graph_and_shared_info.second; If the only thing needed ...
5 years, 1 month ago (2015-11-23 11:18:38 UTC) #11
oth
Benedikt: this change revises the CreateClosure bytecode to take the shared function info as a ...
5 years ago (2015-11-24 12:29:36 UTC) #12
Benedikt Meurer
Thanks for changing. LGTM from my side.
5 years ago (2015-11-24 12:32:44 UTC) #14
mythria
lgtm https://codereview.chromium.org/1458603012/diff/120001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1458603012/diff/120001/src/compiler/bytecode-graph-builder.cc#newcode8 src/compiler/bytecode-graph-builder.cc:8: #include "src/compiler/node-matchers.h" This may not be needed now.
5 years ago (2015-11-24 13:07:28 UTC) #15
Michael Starzinger
LGTM with final nits. https://codereview.chromium.org/1458603012/diff/120001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1458603012/diff/120001/src/compiler/bytecode-graph-builder.cc#newcode8 src/compiler/bytecode-graph-builder.cc:8: #include "src/compiler/node-matchers.h" On 2015/11/24 13:07:28, ...
5 years ago (2015-11-24 13:51:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458603012/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458603012/140001
5 years ago (2015-11-24 17:50:16 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-11-24 17:51:35 UTC) #20
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/4cceb11b0929abcbc82bf0854554a9b66003335d Cr-Commit-Position: refs/heads/master@{#32224}
5 years ago (2015-11-24 17:51:58 UTC) #21
oth
5 years ago (2015-11-24 18:10:28 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1471913004/ by oth@chromium.org.

The reason for reverting is: Build break..

Powered by Google App Engine
This is Rietveld 408576698