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

Issue 2169813002: [interpreter] Add output register to ToName (Closed)

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

Description

[interpreter] Add output register to ToName ToName was always generated with a subsequent Star, fuse them. Requires a few changes in the peephole optimizer as ToName cannot be elided as easily, but must be replaced by Star. BUG=v8:4280 LOG=n Committed: https://crrev.com/63ea19baa0c906e54ba18bd1311e53f9b0cc8874 Cr-Commit-Position: refs/heads/master@{#38019}

Patch Set 1 #

Patch Set 2 : rebase, update graph builder #

Patch Set 3 : fix unittests #

Total comments: 2

Patch Set 4 : remove and inline BuildCastOperator #

Total comments: 8

Patch Set 5 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -84 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-peephole-optimizer.cc View 1 2 3 chunks +12 lines, -13 lines 0 comments Download
M src/interpreter/bytecode-peephole-table.h View 1 chunk +12 lines, -12 lines 0 comments Download
M src/interpreter/bytecode-pipeline.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecodes.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/interpreter/mkpeephole.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 1 3 chunks +3 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden View 1 8 chunks +8 lines, -12 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/interpreter/bytecode-peephole-optimizer-unittest.cc View 1 2 3 chunks +14 lines, -19 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
klaasb
Similar to the ToNumber one. @Orion: Could you please take a look at the changes ...
4 years, 5 months ago (2016-07-22 10:07:03 UTC) #6
Michael Starzinger
https://codereview.chromium.org/2169813002/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2169813002/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode1307 src/compiler/bytecode-graph-builder.cc:1307: void BytecodeGraphBuilder::BuildCastOperator(const Operator* js_op) { nit: By now the ...
4 years, 5 months ago (2016-07-22 10:36:05 UTC) #7
klaasb
https://codereview.chromium.org/2169813002/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2169813002/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode1307 src/compiler/bytecode-graph-builder.cc:1307: void BytecodeGraphBuilder::BuildCastOperator(const Operator* js_op) { On 2016/07/22 10:36:05, Michael ...
4 years, 5 months ago (2016-07-22 11:00:49 UTC) #8
Michael Starzinger
Thanks! LGTM on "compiler", didn't look at the rest.
4 years, 5 months ago (2016-07-22 11:02:55 UTC) #9
oth
Nice, LGTM with a minor comment. https://codereview.chromium.org/2169813002/diff/60001/src/interpreter/mkpeephole.cc File src/interpreter/mkpeephole.cc (right): https://codereview.chromium.org/2169813002/diff/60001/src/interpreter/mkpeephole.cc#newcode109 src/interpreter/mkpeephole.cc:109: // ToName optimizations: ...
4 years, 5 months ago (2016-07-22 11:13:10 UTC) #10
rmcilroy
Not had time to look fully yet, but one thought for ToObject for a later ...
4 years, 5 months ago (2016-07-22 14:36:11 UTC) #11
rmcilroy
Thanks, LGTM. https://codereview.chromium.org/2169813002/diff/60001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2169813002/diff/60001/src/interpreter/bytecode-array-builder.h#newcode217 src/interpreter/bytecode-array-builder.h:217: // Does not update the accumulator but ...
4 years, 5 months ago (2016-07-25 10:57:47 UTC) #12
klaasb
https://codereview.chromium.org/2169813002/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2169813002/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode1315 src/compiler/bytecode-graph-builder.cc:1315: void BytecodeGraphBuilder::VisitToObject() { On 2016/07/22 14:36:10, rmcilroy wrote: > ...
4 years, 5 months ago (2016-07-25 12:25:08 UTC) #13
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/2169813002/80001
4 years, 5 months ago (2016-07-25 12:25:26 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-25 12:51:44 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 12:53:06 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/63ea19baa0c906e54ba18bd1311e53f9b0cc8874
Cr-Commit-Position: refs/heads/master@{#38019}

Powered by Google App Engine
This is Rietveld 408576698