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

Issue 2641443002: [ignition] Use absolute values for jump offsets (Closed)

Created:
3 years, 11 months ago by Leszek Swirski
Modified:
3 years, 11 months ago
Reviewers:
rmcilroy
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ignition] Use absolute values for jump offsets Since JumpLoop is always backwards, and other jumps are always forwards, we can store the jump offset as an always positive integer and decide on the jump direction based on the bytecode. This will save a small amount of space for large-ish for loops (>128 bytecodes). Review-Url: https://codereview.chromium.org/2641443002 Cr-Commit-Position: refs/heads/master@{#42638} Committed: https://chromium.googlesource.com/v8/v8/+/e56437b630198d86a3114cba34cd181345f3a5b4

Patch Set 1 #

Patch Set 2 : Fix tests #

Patch Set 3 : Fix unsigned comparison #

Total comments: 2

Patch Set 4 : Restore forward jumps to interrupt budget #

Patch Set 5 : Fix build #

Total comments: 5

Patch Set 6 : Split JumpBackward off from Jump #

Patch Set 7 : Allow jumps to use the full width of their unsigned operand #

Patch Set 8 : Fix post-OSR-call jump direction typo #

Patch Set 9 : Fix tests #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -130 lines) Patch
M src/interpreter/bytecode-array-accessor.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-writer.cc View 1 2 3 4 5 6 3 chunks +14 lines, -10 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -10 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 9 12 chunks +12 lines, -12 lines 0 comments Download
M src/interpreter/interpreter-assembler.h View 1 2 3 4 5 6 7 8 9 5 chunks +20 lines, -8 lines 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 2 3 4 5 6 7 8 9 5 chunks +23 lines, -11 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicLoops.golden View 15 chunks +15 lines, -15 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForIn.golden View 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 3 4 5 6 7 8 9 13 chunks +24 lines, -30 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/JumpsRequiringConstantWideOperands.golden View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RemoveRedundantLdar.golden View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WideRegisters.golden View 2 chunks +2 lines, -2 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +18 lines, -18 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-writer-unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 61 (50 generated)
Leszek Swirski
Hey Ross, What do you think of this small change? I mentioned this over coffee, ...
3 years, 11 months ago (2017-01-17 17:33:23 UTC) #14
rmcilroy
https://codereview.chromium.org/2641443002/diff/40001/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/2641443002/diff/40001/src/interpreter/interpreter-assembler.cc#newcode911 src/interpreter/interpreter-assembler.cc:911: if (reverse) { Could this be done separately (or ...
3 years, 11 months ago (2017-01-17 17:58:39 UTC) #15
Leszek Swirski
https://codereview.chromium.org/2641443002/diff/40001/src/interpreter/interpreter-assembler.cc File src/interpreter/interpreter-assembler.cc (right): https://codereview.chromium.org/2641443002/diff/40001/src/interpreter/interpreter-assembler.cc#newcode911 src/interpreter/interpreter-assembler.cc:911: if (reverse) { On 2017/01/17 17:58:38, rmcilroy wrote: > ...
3 years, 11 months ago (2017-01-18 17:22:28 UTC) #24
rmcilroy
Yeah, let's get rid of the todo unless you saw some significant perf improvement from ...
3 years, 11 months ago (2017-01-19 09:22:38 UTC) #25
Leszek Swirski
https://codereview.chromium.org/2641443002/diff/80001/src/interpreter/interpreter-assembler.h File src/interpreter/interpreter-assembler.h (right): https://codereview.chromium.org/2641443002/diff/80001/src/interpreter/interpreter-assembler.h#newcode157 src/interpreter/interpreter-assembler.h:157: compiler::Node* Jump(compiler::Node* jump_offset, bool backwards = false); On 2017/01/19 ...
3 years, 11 months ago (2017-01-19 10:52:59 UTC) #28
rmcilroy
Looks like you've got some redness, but LGTM once it runs. https://codereview.chromium.org/2641443002/diff/80001/test/cctest/interpreter/bytecode_expectations/BasicLoops.golden File test/cctest/interpreter/bytecode_expectations/BasicLoops.golden (left): ...
3 years, 11 months ago (2017-01-19 12:13:46 UTC) #32
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/2641443002/160001
3 years, 11 months ago (2017-01-24 20:09:59 UTC) #49
commit-bot: I haz the power
Failed to apply patch for test/cctest/interpreter/bytecode_expectations/Generators.golden: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-24 20:44:52 UTC) #51
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/2641443002/180001
3 years, 11 months ago (2017-01-24 21:45:12 UTC) #56
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/2641443002/180001
3 years, 11 months ago (2017-01-24 21:45:22 UTC) #58
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 22:09:10 UTC) #61
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/v8/v8/+/e56437b630198d86a3114cba34cd181345f...

Powered by Google App Engine
This is Rietveld 408576698