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

Issue 1283313003: [interpreter]: Update BytecodeArrayBuilder register handling. (Closed)

Created:
5 years, 4 months ago by rmcilroy
Modified:
5 years, 4 months ago
Reviewers:
oth, Michael Starzinger
CC:
v8-dev
Base URL:
ssh://rmcilroy.lon.corp.google.com///usr/local/google/code/v8_full/v8@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter]: Update BytecodeArrayBuilder register handling. Modifies the BytecodeArrayBuilder to create register operands which are negative. This reduces the number of instructions to access registers by the interpreter and allows us to use positive register operands to access parameter values. Adds a Register class to keep register usage typesafe and simplify the convertion to bytecode operand values. BUG=v8:4280 LOG=N Committed: https://crrev.com/9b56924df20a2931e1d1fc7ee863fb266f527de0 Cr-Commit-Position: refs/heads/master@{#30151}

Patch Set 1 #

Patch Set 2 : Formatting #

Patch Set 3 : Fix define in OperandTypeToString #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -160 lines) Patch
M src/interpreter/bytecode-array-builder.h View 1 6 chunks +33 lines, -10 lines 2 comments Download
M src/interpreter/bytecode-array-builder.cc View 5 chunks +18 lines, -17 lines 0 comments Download
M src/interpreter/bytecodes.h View 2 chunks +4 lines, -0 lines 2 comments Download
M src/interpreter/bytecodes.cc View 1 2 4 chunks +22 lines, -1 line 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +0 lines, -1 line 0 comments Download
D test/cctest/interpreter/test-bytecode-array-builder.cc View 1 chunk +0 lines, -112 lines 0 comments Download
A + test/unittests/interpreter/bytecode-array-builder-unittest.cc View 5 chunks +29 lines, -19 lines 0 comments Download
M test/unittests/unittests.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283313003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283313003/20001
5 years, 4 months ago (2015-08-12 21:07:05 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/6891)
5 years, 4 months ago (2015-08-12 21:09:17 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283313003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283313003/40001
5 years, 4 months ago (2015-08-13 09:58:37 UTC) #6
rmcilroy
Orion: could you take a look please? Thanks.
5 years, 4 months ago (2015-08-13 09:58:59 UTC) #8
oth
lgtm. A couple of trivial comments, but fine. https://codereview.chromium.org/1283313003/diff/40001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/1283313003/diff/40001/src/interpreter/bytecode-array-builder.h#newcode82 src/interpreter/bytecode-array-builder.h:82: DCHECK_LE(index_, ...
5 years, 4 months ago (2015-08-13 10:29:55 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-13 10:30:12 UTC) #11
rmcilroy
https://codereview.chromium.org/1283313003/diff/40001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/1283313003/diff/40001/src/interpreter/bytecode-array-builder.h#newcode82 src/interpreter/bytecode-array-builder.h:82: DCHECK_LE(index_, kMaxRegisterIndex); On 2015/08/13 10:29:55, oth wrote: > Probably ...
5 years, 4 months ago (2015-08-13 10:44:22 UTC) #12
rmcilroy
5 years, 4 months ago (2015-08-13 10:44:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283313003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283313003/40001
5 years, 4 months ago (2015-08-13 10:45:23 UTC) #15
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 4 months ago (2015-08-13 10:45:29 UTC) #17
rmcilroy
Micheal: could you stamp for committer/OWNERS please? Thanks.
5 years, 4 months ago (2015-08-13 10:51:36 UTC) #19
oth
On 2015/08/13 10:44:22, rmcilroy wrote: > It's required by DCHECK_EQ(x, OperandType::x). I just noticed that ...
5 years, 4 months ago (2015-08-13 11:08:43 UTC) #20
Michael Starzinger
LGTM (rubber-stamped).
5 years, 4 months ago (2015-08-13 11:11:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283313003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283313003/40001
5 years, 4 months ago (2015-08-13 11:26:09 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-13 11:27:59 UTC) #24
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 11:28:09 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9b56924df20a2931e1d1fc7ee863fb266f527de0
Cr-Commit-Position: refs/heads/master@{#30151}

Powered by Google App Engine
This is Rietveld 408576698