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

Issue 1651133002: [interpreter] Move temporary register allocator into own file. (Closed)

Created:
4 years, 10 months ago by oth
Modified:
4 years, 10 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] Move temporary register allocator into own file. Moves the temporary register allocator out of the bytecode array builder into TemporaryRegisterAllocator class and adds unittests. Particular must be taken around the translation window boundary motivating the addition of tests. Also adds a Clear() method to IdentityMap() which is called by the destructor. This allows classes to hold an IdentityMap if they are zone allocated. Classes must call Clear() before the zone is re-cycled or face v8 heap corruption. BUG=v8:4280, v8:4675 LOG=N Committed: https://crrev.com/ef93854ab9c268f37900aaed507275f0d96b634a Cr-Commit-Position: refs/heads/master@{#33686}

Patch Set 1 #

Patch Set 2 : Compilation fix for Android. #

Patch Set 3 : Nit. #

Patch Set 4 : linux gcc compilation fix. #

Patch Set 5 : ASAN fix. #

Total comments: 6

Patch Set 6 : Incorporate review comments from rmcilroy. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+621 lines, -487 lines) Patch
M src/identity-map.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/identity-map.cc View 1 chunk +10 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 7 chunks +21 lines, -25 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 5 chunks +12 lines, -181 lines 0 comments Download
M src/interpreter/bytecode-array-iterator.cc View 1 2 3 4 5 2 chunks +16 lines, -5 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 chunks +12 lines, -11 lines 0 comments Download
M src/interpreter/bytecode-register-allocator.h View 3 chunks +56 lines, -5 lines 0 comments Download
M src/interpreter/bytecode-register-allocator.cc View 1 2 3 4 5 4 chunks +166 lines, -9 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M src/interpreter/bytecodes.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M src/interpreter/constant-array-builder.h View 3 chunks +8 lines, -3 lines 0 comments Download
M src/interpreter/constant-array-builder.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/compiler/test-run-bytecode-graph-builder.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 41 chunks +74 lines, -158 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 9 chunks +13 lines, -45 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-iterator-unittest.cc View 1 chunk +1 line, -5 lines 0 comments Download
M test/unittests/interpreter/bytecode-register-allocator-unittest.cc View 1 2 3 1 chunk +193 lines, -25 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
oth
mstarzinger@chromium.org: Please review changes in src/identity-map.{h,cc} mythria, rmcilroy: Please review changes in the interpreter and ...
4 years, 10 months ago (2016-02-01 14:49:25 UTC) #2
Michael Starzinger
LGTM on "identity-map", didn't look at the rest.
4 years, 10 months ago (2016-02-01 16:23:38 UTC) #3
rmcilroy
lgtm https://codereview.chromium.org/1651133002/diff/80001/src/interpreter/bytecode-array-iterator.cc File src/interpreter/bytecode-array-iterator.cc (right): https://codereview.chromium.org/1651133002/diff/80001/src/interpreter/bytecode-array-iterator.cc#newcode102 src/interpreter/bytecode-array-iterator.cc:102: reg = Register::invalid_value(); break; https://codereview.chromium.org/1651133002/diff/80001/src/interpreter/bytecode-array-iterator.cc#newcode112 src/interpreter/bytecode-array-iterator.cc:112: OperandType::kMaybeReg16))); nit ...
4 years, 10 months ago (2016-02-02 10:53:28 UTC) #4
oth
thanks, done. https://codereview.chromium.org/1651133002/diff/80001/src/interpreter/bytecode-array-iterator.cc File src/interpreter/bytecode-array-iterator.cc (right): https://codereview.chromium.org/1651133002/diff/80001/src/interpreter/bytecode-array-iterator.cc#newcode102 src/interpreter/bytecode-array-iterator.cc:102: reg = Register::invalid_value(); On 2016/02/02 10:53:28, rmcilroy ...
4 years, 10 months ago (2016-02-02 11:20:24 UTC) #5
mythria
lgtm
4 years, 10 months ago (2016-02-02 11:47:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1651133002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1651133002/100001
4 years, 10 months ago (2016-02-02 14:10:15 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-02 14:31:47 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2016-02-02 14:32:36 UTC) #12
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ef93854ab9c268f37900aaed507275f0d96b634a
Cr-Commit-Position: refs/heads/master@{#33686}

Powered by Google App Engine
This is Rietveld 408576698