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

Issue 2165953002: [interpreter] Add a register operand to ToNumber (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@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter] Add a register operand to ToNumber ToNumber's result is always directly stored to a register using a Star bytecode. Fuse it into ToNumber. BUG=v8:4280 LOG=n Committed: https://crrev.com/220284638e719b67d586da10983e2006942c7040 Cr-Commit-Position: refs/heads/master@{#37976}

Patch Set 1 #

Patch Set 2 : small refactor #

Patch Set 3 : don't store to the accumulator when storing to register #

Patch Set 4 : fix accumulator use #

Patch Set 5 : regenerate bytecode expectations #

Total comments: 6

Patch Set 6 : fix bytecode graph builder, comments #

Total comments: 4

Patch Set 7 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -60 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 2 chunks +11 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden View 1 2 3 4 4 chunks +4 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicLoops.golden View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CountOperators.golden View 1 2 3 4 9 chunks +12 lines, -18 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCountOperators.golden View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/JumpsRequiringConstantWideOperands.golden View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WideRegisters.golden View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (19 generated)
klaasb
Please take a look. Performance try bot results on the first patch set, basically unchanged ...
4 years, 5 months ago (2016-07-20 14:34:50 UTC) #2
rmcilroy
https://codereview.chromium.org/2165953002/diff/80001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2165953002/diff/80001/src/interpreter/bytecode-array-builder.h#newcode218 src/interpreter/bytecode-array-builder.h:218: BytecodeArrayBuilder& CastAccumulatorToNumber(Register out); Can you add a comment that ...
4 years, 5 months ago (2016-07-21 09:31:48 UTC) #12
klaasb
https://codereview.chromium.org/2165953002/diff/80001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2165953002/diff/80001/src/interpreter/bytecode-array-builder.h#newcode218 src/interpreter/bytecode-array-builder.h:218: BytecodeArrayBuilder& CastAccumulatorToNumber(Register out); On 2016/07/21 09:31:48, rmcilroy wrote: > ...
4 years, 5 months ago (2016-07-21 10:55:19 UTC) #13
rmcilroy
LGTM. You will need to get a compiler/ OWNERS review as well. https://codereview.chromium.org/2165953002/diff/100001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h ...
4 years, 5 months ago (2016-07-22 09:36:36 UTC) #18
klaasb
Hi Michael, could you please take a look as well? https://codereview.chromium.org/2165953002/diff/100001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2165953002/diff/100001/src/interpreter/bytecode-array-builder.h#newcode218 ...
4 years, 5 months ago (2016-07-22 09:45:45 UTC) #20
Michael Starzinger
LGTM on "compiler", didn't look at the rest.
4 years, 5 months ago (2016-07-22 09:50:02 UTC) #21
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/2165953002/120001
4 years, 5 months ago (2016-07-22 10:01:13 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-22 10:24:07 UTC) #26
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 10:26:18 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/220284638e719b67d586da10983e2006942c7040
Cr-Commit-Position: refs/heads/master@{#37976}

Powered by Google App Engine
This is Rietveld 408576698