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

Issue 1503963002: [Interpreter] Adds wide variant of CreateLiterals. Adds CreateLiterals to BytecodeGraphBuilder. (Closed)

Created:
5 years ago by mythria
Modified:
5 years 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 wide variant of CreateLiterals. Adds CreateLiterals to BytecodeGraphBuilder. Adds implementation and tests for CreateObjectLiteral, CreateArrayLiteral and CreateRegExpLiteral to bytecode graph builder. Also changes these bytecodes to expect three operands instead of using accumulator to pass one of the operands. This is done to avoid looking into the earlier nodes to fetch operands in the bytecode graph builder. Also adds support for wide variant of these bytecodes to bytecode generator and bytecode graph builder. BUG=v8:4280 LOG=N Committed: https://crrev.com/67c99a991829fdf81169e3a51163ee23f21082df Cr-Commit-Position: refs/heads/master@{#32710}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Adds wide variant of CreateLiterals to fixt failing test262 tests. #

Patch Set 3 : Addressed review comments #

Patch Set 4 : Fixed a bug with getting the literal_index. It should be an index operand. #

Total comments: 2

Patch Set 5 : Added a helper function for BuildLiteral. #

Patch Set 6 : renamed BuildLiteral to BuildCreateLiteral. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -253 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 1 chunk +64 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 chunk +6 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 chunks +34 lines, -12 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 1 chunk +12 lines, -3 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 chunks +43 lines, -12 lines 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 1 1 chunk +144 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 37 chunks +266 lines, -207 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
mythria
Could you please review my changes. Thanks, Mythri
5 years ago (2015-12-07 10:39:57 UTC) #3
rmcilroy
https://codereview.chromium.org/1503963002/diff/1/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1503963002/diff/1/src/compiler/bytecode-graph-builder.cc#newcode710 src/compiler/bytecode-graph-builder.cc:710: iterator.GetImmediateOperand(2), iterator.GetIndexOperand(1)); Could you pull out the iterator.GetXXX() to ...
5 years ago (2015-12-07 14:33:22 UTC) #4
mythria
I added wide variants to bytecode generator and addressed review comments. Could you please take ...
5 years ago (2015-12-07 15:11:18 UTC) #6
oth
lgtm
5 years ago (2015-12-07 16:47:29 UTC) #7
rmcilroy
lgtm
5 years ago (2015-12-08 10:03:09 UTC) #8
Benedikt Meurer
LGTM(compiler) with comment https://codereview.chromium.org/1503963002/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/1503963002/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode707 src/compiler/bytecode-graph-builder.cc:707: Node* closure = GetFunctionClosure(); This code ...
5 years ago (2015-12-09 07:24:12 UTC) #9
mythria
Thanks for your reviews. I added a BuildCreateLiteral helper function. Thanks, Mythri https://codereview.chromium.org/1503963002/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc ...
5 years ago (2015-12-09 09:48:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1503963002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1503963002/100001
5 years ago (2015-12-09 11:51:15 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-09 11:53:10 UTC) #17
commit-bot: I haz the power
5 years ago (2015-12-09 11:53:21 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/67c99a991829fdf81169e3a51163ee23f21082df
Cr-Commit-Position: refs/heads/master@{#32710}

Powered by Google App Engine
This is Rietveld 408576698