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

Issue 1294543002: [Interpreter] Minimal bytecode generator. (Closed)

Created:
5 years, 4 months ago by oth
Modified:
5 years, 4 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@oth-register-conversion
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Minimal bytecode generator. Bytecode generator for local assignment and basic binary operations. Command-line flag for printing bytecodes. BUG=v8:4280 LOG=N Committed: https://crrev.com/238397c10866c4b5a02bca00d6a7f0f75cb7fe2d Cr-Commit-Position: refs/heads/master@{#30221}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Incorporate comments on patch set 1 and add a simple test. #

Total comments: 9

Patch Set 3 : Additional tests. #

Total comments: 10

Patch Set 4 : Incorporate review comments on patch sets 2 & 3. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+613 lines, -7 lines) Patch
M BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler.cc View 3 chunks +22 lines, -4 lines 0 comments Download
M src/flag-definitions.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A src/interpreter/bytecode-generator.h View 1 chunk +44 lines, -0 lines 0 comments Download
A src/interpreter/bytecode-generator.cc View 1 2 3 1 chunk +370 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 chunks +22 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M src/runtime/runtime-compiler.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/cctest.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 1 chunk +129 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
oth
Ross, ptal, this is pretty minimal. Need work out a testing strategy going forward.
5 years, 4 months ago (2015-08-13 16:11:30 UTC) #2
rmcilroy
Looks great to me (once tests are added). Maybe let Michael have a look too? ...
5 years, 4 months ago (2015-08-14 09:31:18 UTC) #3
oth
Michael, here's the minimal code generator, PTAL. Ross, comments incorporated. As we discussed, this'll need ...
5 years, 4 months ago (2015-08-17 08:05:49 UTC) #5
Michael Starzinger
LGTM from my end. Just nits and suggestions. https://codereview.chromium.org/1294543002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1294543002/diff/20001/src/interpreter/bytecode-generator.cc#newcode8 src/interpreter/bytecode-generator.cc:8: #include ...
5 years, 4 months ago (2015-08-18 08:17:16 UTC) #6
rmcilroy
lgtm with a couple of nits. https://codereview.chromium.org/1294543002/diff/30001/test/cctest/interpreter/test-bytecode-generator.cc File test/cctest/interpreter/test-bytecode-generator.cc (right): https://codereview.chromium.org/1294543002/diff/30001/test/cctest/interpreter/test-bytecode-generator.cc#newcode23 test/cctest/interpreter/test-bytecode-generator.cc:23: i::FLAG_print_bytecode = false; ...
5 years, 4 months ago (2015-08-18 10:31:31 UTC) #7
oth
Thanks both. Feedback incorporated. Waiting on https://codereview.chromium.org/1289863003/ before committing. https://codereview.chromium.org/1294543002/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1294543002/diff/20001/src/interpreter/bytecode-generator.cc#newcode8 src/interpreter/bytecode-generator.cc:8: ...
5 years, 4 months ago (2015-08-18 10:56:11 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1294543002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1294543002/50001
5 years, 4 months ago (2015-08-18 13:10:01 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-18 13:34:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1294543002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1294543002/50001
5 years, 4 months ago (2015-08-18 13:45:36 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:50001)
5 years, 4 months ago (2015-08-18 13:46:46 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 13:47:02 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/238397c10866c4b5a02bca00d6a7f0f75cb7fe2d
Cr-Commit-Position: refs/heads/master@{#30221}

Powered by Google App Engine
This is Rietveld 408576698