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

Issue 2536653003: [ignition] Rewrite reverse iterator as random iterator (Closed)

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

Description

[ignition] Rewrite reverse iterator as random iterator This allows us to optimise the bytecode liveness analysis to jump directly to previously seen indices. The analysis is optimised to store a stack of loop ends (JumpLoop bytecode indices), and iterate through these indices directly rather than looping through the bytecode array to find them. Committed: https://crrev.com/b9d930735ae8268fb95fd3a11681d587eb30e585 Cr-Commit-Position: refs/heads/master@{#41485}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename Valid to IsValid and add so many more tests #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1146 lines, -463 lines) Patch
M BUILD.gn View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/bytecode-analysis.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/bytecode-analysis.cc View 1 2 7 chunks +41 lines, -65 lines 0 comments Download
A src/interpreter/bytecode-array-random-iterator.h View 1 1 chunk +78 lines, -0 lines 0 comments Download
A + src/interpreter/bytecode-array-random-iterator.cc View 1 2 chunks +9 lines, -18 lines 0 comments Download
D src/interpreter/bytecode-array-reverse-iterator.h View 1 chunk +0 lines, -39 lines 0 comments Download
D src/interpreter/bytecode-array-reverse-iterator.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M src/v8.gyp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M test/unittests/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A test/unittests/interpreter/bytecode-array-random-iterator-unittest.cc View 1 1 chunk +1010 lines, -0 lines 0 comments Download
D test/unittests/interpreter/bytecode-array-reverse-iterator-unittest.cc View 1 chunk +0 lines, -288 lines 0 comments Download
M test/unittests/unittests.gyp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (17 generated)
Leszek Swirski
Hi Ross, As discussed, a random access iterator and the corresponding liveness analysis improvements. LMKWYT.
4 years ago (2016-11-28 16:46:39 UTC) #4
rmcilroy
LGTM https://codereview.chromium.org/2536653003/diff/1/src/interpreter/bytecode-array-random-iterator.h File src/interpreter/bytecode-array-random-iterator.h (right): https://codereview.chromium.org/2536653003/diff/1/src/interpreter/bytecode-array-random-iterator.h#newcode57 src/interpreter/bytecode-array-random-iterator.h:57: bool Valid() const; nit IsValid https://codereview.chromium.org/2536653003/diff/1/test/unittests/interpreter/bytecode-array-random-iterator-unittest.cc File test/unittests/interpreter/bytecode-array-random-iterator-unittest.cc ...
4 years ago (2016-11-29 12:09:32 UTC) #7
Leszek Swirski
Hi Jaro, Could you take a look at the src/compiler parts of this CL please?
4 years ago (2016-11-29 15:04:53 UTC) #10
Leszek Swirski
https://codereview.chromium.org/2536653003/diff/1/src/interpreter/bytecode-array-random-iterator.h File src/interpreter/bytecode-array-random-iterator.h (right): https://codereview.chromium.org/2536653003/diff/1/src/interpreter/bytecode-array-random-iterator.h#newcode57 src/interpreter/bytecode-array-random-iterator.h:57: bool Valid() const; On 2016/11/29 12:09:32, rmcilroy wrote: > ...
4 years ago (2016-11-29 15:05:35 UTC) #11
Leszek Swirski
4 years ago (2016-11-29 15:05:37 UTC) #12
Leszek Swirski
Hi Jaro, Could you take a look at the src/compiler parts of this CL please?
4 years ago (2016-11-29 15:06:03 UTC) #14
Jarin
lgtm. Thanks!
4 years ago (2016-11-30 06:05:22 UTC) #17
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/2536653003/20001
4 years ago (2016-12-05 12:13:35 UTC) #20
commit-bot: I haz the power
Failed to apply patch for src/compiler/bytecode-analysis.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-05 12:39:02 UTC) #22
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/2536653003/40001
4 years ago (2016-12-05 12:41:35 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-05 13:03:13 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-05 13:03:56 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b9d930735ae8268fb95fd3a11681d587eb30e585
Cr-Commit-Position: refs/heads/master@{#41485}

Powered by Google App Engine
This is Rietveld 408576698