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

Issue 1419373007: [Interpreter] Adds implementation of bytecode graph builder for LoadICSloppy/Strict (Closed)

Created:
5 years, 1 month ago by mythria
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] Adds implementation of bytecode graph builder for LoadICSloppy/Strict. Adds implementation and tests for following operators in bytecode graph builder: -VisitLoadICSloppy -VisitLoadICStrict -VisitLoadICSloppyWide -VisitLoadICStrictWide The current implementation introduces empty frame states for frame state inputs expected by these operations. BUG=v8:4280 LOG=N Committed: https://crrev.com/2acc2bc2a1a1dfc9d681e028a44f3657a99ebf1a Cr-Commit-Position: refs/heads/master@{#32026}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Added unittests and addressed review comments #

Total comments: 41

Patch Set 3 : Addressed review comments #

Patch Set 4 : removed extra spaces from code snippets in test-run-bytecode-graph-builder #

Total comments: 14

Patch Set 5 : Moved graph generation from bytecode into helper, so that all graph generation is at one place. #

Total comments: 22

Patch Set 6 : Removes FrameStateBeforeAndAfter and adds a function to replace framestate inputs with emtpy frame … #

Total comments: 13

Patch Set 7 : Addressed review comments #

Total comments: 18

Patch Set 8 : WIP: uploading so that other cls can be rebased #

Patch Set 9 : Modified bytecode-graph-builder-unittest to build bytecode array instead of generating it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -72 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 2 3 4 5 6 5 chunks +30 lines, -2 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 4 chunks +74 lines, -10 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 1 2 3 4 8 4 chunks +80 lines, -2 lines 0 comments Download
M test/unittests/compiler/bytecode-graph-builder-unittest.cc View 1 2 3 4 5 6 7 8 13 chunks +149 lines, -56 lines 0 comments Download
M test/unittests/compiler/node-test-utils.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.cc View 1 2 3 4 5 6 7 3 chunks +66 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (8 generated)
mythria
Can you please review my changes. This cl is not complete yet. I have to ...
5 years, 1 month ago (2015-11-04 12:19:14 UTC) #2
rmcilroy
Looking good, a couple of comments to get started. https://codereview.chromium.org/1419373007/diff/1/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1419373007/diff/1/src/compiler/bytecode-graph-builder.cc#newcode104 src/compiler/bytecode-graph-builder.cc:104: ...
5 years, 1 month ago (2015-11-04 14:27:37 UTC) #3
mythria
Could you please review my changes. I have a couple of more TODOs for adding ...
5 years, 1 month ago (2015-11-09 12:08:37 UTC) #4
rmcilroy
https://codereview.chromium.org/1419373007/diff/20001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1419373007/diff/20001/src/compiler/bytecode-graph-builder.cc#newcode200 src/compiler/bytecode-graph-builder.cc:200: VectorSlotPair BytecodeGraphBuilder::CreateVectorSlotPair( Just inline this into the function above ...
5 years, 1 month ago (2015-11-09 15:23:01 UTC) #8
mythria
Can you please review my changes. Thanks, Mythri https://codereview.chromium.org/1419373007/diff/20001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1419373007/diff/20001/src/compiler/bytecode-graph-builder.cc#newcode200 src/compiler/bytecode-graph-builder.cc:200: VectorSlotPair ...
5 years, 1 month ago (2015-11-10 09:55:36 UTC) #9
rmcilroy
Looking really good. Final nits about the tests, but after they are fixed please add ...
5 years, 1 month ago (2015-11-10 11:23:20 UTC) #10
mythria
Could you please review my changes. I added support for LoadICSloppy/Strict operators in bytecode graph ...
5 years, 1 month ago (2015-11-10 17:02:51 UTC) #12
rmcilroy
LGTM with some final nits, thanks. https://codereview.chromium.org/1419373007/diff/80001/src/compiler/bytecode-graph-builder.h File src/compiler/bytecode-graph-builder.h (right): https://codereview.chromium.org/1419373007/diff/80001/src/compiler/bytecode-graph-builder.h#newcode44 src/compiler/bytecode-graph-builder.h:44: // Builders for ...
5 years, 1 month ago (2015-11-10 18:00:15 UTC) #13
mythria
As discussed in today's meeting, I removed FrameStateBeforeAndAfter abstraction. Now, I just replace frame state ...
5 years, 1 month ago (2015-11-11 13:39:25 UTC) #14
rmcilroy
lgtm https://codereview.chromium.org/1419373007/diff/100001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1419373007/diff/100001/src/compiler/bytecode-graph-builder.cc#newcode357 src/compiler/bytecode-graph-builder.cc:357: void BytecodeGraphBuilder::AddFrameStateInputs(Node* node) { nit - move this ...
5 years, 1 month ago (2015-11-11 14:10:06 UTC) #15
rmcilroy
one more comment https://codereview.chromium.org/1419373007/diff/100001/test/unittests/compiler/node-test-utils.cc File test/unittests/compiler/node-test-utils.cc (right): https://codereview.chromium.org/1419373007/diff/100001/test/unittests/compiler/node-test-utils.cc#newcode1431 test/unittests/compiler/node-test-utils.cc:1431: class IsNamedLoadMatcher final : public NodeMatcher ...
5 years, 1 month ago (2015-11-11 14:23:51 UTC) #16
rmcilroy
https://codereview.chromium.org/1419373007/diff/100001/test/unittests/compiler/node-test-utils.cc File test/unittests/compiler/node-test-utils.cc (right): https://codereview.chromium.org/1419373007/diff/100001/test/unittests/compiler/node-test-utils.cc#newcode1431 test/unittests/compiler/node-test-utils.cc:1431: class IsNamedLoadMatcher final : public NodeMatcher { On 2015/11/11 ...
5 years, 1 month ago (2015-11-11 14:24:57 UTC) #17
mythria
addressed review comments from Ross. Thanks, Mythri https://codereview.chromium.org/1419373007/diff/100001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1419373007/diff/100001/src/compiler/bytecode-graph-builder.cc#newcode357 src/compiler/bytecode-graph-builder.cc:357: void BytecodeGraphBuilder::AddFrameStateInputs(Node* ...
5 years, 1 month ago (2015-11-11 15:32:50 UTC) #18
Michael Starzinger
LGTM on the "compiler" piece in its current form. Only glossed over the rest.
5 years, 1 month ago (2015-11-12 13:31:48 UTC) #19
Michael Starzinger
https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc File test/unittests/compiler/bytecode-graph-builder-unittest.cc (right): https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc#newcode239 test/unittests/compiler/bytecode-graph-builder-unittest.cc:239: GraphGeneratorHelper helper(isolate(), zone(), It looks like the GraphGeneratorHelper is ...
5 years, 1 month ago (2015-11-12 13:36:14 UTC) #20
Michael Starzinger
https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc File test/unittests/compiler/bytecode-graph-builder-unittest.cc (right): https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc#newcode129 test/unittests/compiler/bytecode-graph-builder-unittest.cc:129: i::FLAG_ignition = true; Ouch! Changing global flags in unit ...
5 years, 1 month ago (2015-11-12 13:40:09 UTC) #21
Benedikt Meurer
https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc File test/unittests/compiler/bytecode-graph-builder-unittest.cc (right): https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc#newcode47 test/unittests/compiler/bytecode-graph-builder-unittest.cc:47: #define REPEAT_127(SEP, ...) \ Do we really need/want these ...
5 years, 1 month ago (2015-11-12 13:45:02 UTC) #23
rmcilroy
https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc File test/unittests/compiler/bytecode-graph-builder-unittest.cc (right): https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc#newcode47 test/unittests/compiler/bytecode-graph-builder-unittest.cc:47: #define REPEAT_127(SEP, ...) \ On 2015/11/12 13:45:02, Benedikt Meurer ...
5 years, 1 month ago (2015-11-12 13:48:56 UTC) #24
mythria
I removed the bytecode generation from strings and reverted it back to building the bytecode ...
5 years, 1 month ago (2015-11-13 09:42:56 UTC) #25
Michael Starzinger
LGTM from my end. https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc File test/unittests/compiler/bytecode-graph-builder-unittest.cc (right): https://codereview.chromium.org/1419373007/diff/120001/test/unittests/compiler/bytecode-graph-builder-unittest.cc#newcode129 test/unittests/compiler/bytecode-graph-builder-unittest.cc:129: i::FLAG_ignition = true; On 2015/11/13 ...
5 years, 1 month ago (2015-11-13 12:37:08 UTC) #26
Benedikt Meurer
LGTM, thanks.
5 years, 1 month ago (2015-11-17 05:09:06 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419373007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419373007/160001
5 years, 1 month ago (2015-11-17 08:33:10 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 1 month ago (2015-11-17 09:05:41 UTC) #31
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 09:06:24 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/2acc2bc2a1a1dfc9d681e028a44f3657a99ebf1a
Cr-Commit-Position: refs/heads/master@{#32026}

Powered by Google App Engine
This is Rietveld 408576698