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

Issue 1642893004: [interpreter] Refactor iterator access in BytecodeGraphBuilder. (Closed)

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

Description

[interpreter] Refactor iterator access in BytecodeGraphBuilder. This refactors how the BytecodeArrayIterator is passed to visitation methods on the BytecodeGraphBuilder. We no longer pass it explicitly, but use the field accessor instead. Note that const-ness is still preserved and visitation methods are still not able to mutate the iterator. The main goal of this refactoring is increased readability. R=rmcilroy@chromium.org Committed: https://crrev.com/579264e359ade615ff64d56d640eed964fb5ce04 Cr-Commit-Position: refs/heads/master@{#33607}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Deprecate old accessor. #

Patch Set 3 : Addressed comments. #

Patch Set 4 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -751 lines) Patch
M src/compiler/bytecode-graph-builder.h View 1 2 3 6 chunks +28 lines, -44 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 21 chunks +373 lines, -707 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Michael Starzinger
4 years, 10 months ago (2016-01-28 18:02:52 UTC) #1
rmcilroy
Lgtm with a renaming suggestion. Thanks! https://codereview.chromium.org/1642893004/diff/1/src/compiler/bytecode-graph-builder.h File src/compiler/bytecode-graph-builder.h (right): https://codereview.chromium.org/1642893004/diff/1/src/compiler/bytecode-graph-builder.h#newcode208 src/compiler/bytecode-graph-builder.h:208: const interpreter::BytecodeArrayIterator& iterator() ...
4 years, 10 months ago (2016-01-28 18:15:05 UTC) #2
Michael Starzinger
Thanks. Addressed comment. Landing. https://codereview.chromium.org/1642893004/diff/1/src/compiler/bytecode-graph-builder.h File src/compiler/bytecode-graph-builder.h (right): https://codereview.chromium.org/1642893004/diff/1/src/compiler/bytecode-graph-builder.h#newcode208 src/compiler/bytecode-graph-builder.h:208: const interpreter::BytecodeArrayIterator& iterator() const { ...
4 years, 10 months ago (2016-01-29 09:42:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1642893004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1642893004/60001
4 years, 10 months ago (2016-01-29 10:10:16 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-01-29 10:15:33 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-01-29 10:15:50 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/579264e359ade615ff64d56d640eed964fb5ce04
Cr-Commit-Position: refs/heads/master@{#33607}

Powered by Google App Engine
This is Rietveld 408576698