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

Issue 1361113002: [Interpreter] Add support for loading globals in the interpreter. (Closed)

Created:
5 years, 3 months ago by rmcilroy
Modified:
5 years, 3 months ago
Reviewers:
oth, Michael Starzinger
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] Add support for loading globals in the interpreter. Adds LdaGlobal bytecode and augments BytecodeGenerator to load globals for global variables and function calls. Modified TestBytecodeGenerator to add the ability to specify that a bytecode operand has an unknown value (used so we don't need to figure out the slot index of a global). Also added a helper which checks equality of BytecodeArray with the expected snipptets. Modified TestInterpreter to allow it to take snippets of JS and have the BytecodeGenerator generate the bytecode rather than having to build a BytecodeArray manually. This is used to enable the global tests. BUG=v8:4280 LOG=N Committed: https://crrev.com/8087c49dc763558368ea15f69d5f6247c287515f Cr-Commit-Position: refs/heads/master@{#30910}

Patch Set 1 #

Patch Set 2 : Fix BytecodeArrayBuilderTest #

Total comments: 4

Patch Set 3 : Review comments and fix ASAN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -140 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-iterator.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-array-iterator.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 3 chunks +23 lines, -3 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 14 chunks +173 lines, -98 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 15 chunks +119 lines, -32 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (10 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/1361113002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1361113002/1
5 years, 3 months ago (2015-09-23 13:13:43 UTC) #3
rmcilroy
Michi, Orion, please take a look, thanks.
5 years, 3 months ago (2015-09-23 13:13:52 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/6016)
5 years, 3 months ago (2015-09-23 13:17:13 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1361113002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1361113002/40001
5 years, 3 months ago (2015-09-23 15:42:12 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/6023)
5 years, 3 months ago (2015-09-23 15:45:33 UTC) #11
Michael Starzinger
LGTM from my end. https://codereview.chromium.org/1361113002/diff/40001/src/interpreter/bytecode-array-iterator.h File src/interpreter/bytecode-array-iterator.h (right): https://codereview.chromium.org/1361113002/diff/40001/src/interpreter/bytecode-array-iterator.h#newcode32 src/interpreter/bytecode-array-iterator.h:32: uint8_t GetRawOperand(int operand_index) const; nit: ...
5 years, 3 months ago (2015-09-24 08:54:54 UTC) #12
oth
LGTM. Minor comment about GetRawOperand as discussed. Great to centralize the bytecode array validation. https://codereview.chromium.org/1361113002/diff/40001/src/interpreter/bytecode-array-iterator.cc ...
5 years, 3 months ago (2015-09-24 10:14:00 UTC) #13
rmcilroy
Thanks for the comments! https://codereview.chromium.org/1361113002/diff/40001/src/interpreter/bytecode-array-iterator.cc File src/interpreter/bytecode-array-iterator.cc (right): https://codereview.chromium.org/1361113002/diff/40001/src/interpreter/bytecode-array-iterator.cc#newcode35 src/interpreter/bytecode-array-iterator.cc:35: uint8_t BytecodeArrayIterator::GetRawOperand(int operand_index) const { ...
5 years, 3 months ago (2015-09-24 11:20:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1361113002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1361113002/60001
5 years, 3 months ago (2015-09-24 11:20:25 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/6040)
5 years, 3 months ago (2015-09-24 11:24:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1361113002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1361113002/60001
5 years, 3 months ago (2015-09-24 11:46:18 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 3 months ago (2015-09-24 11:48:32 UTC) #22
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 11:48:47 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8087c49dc763558368ea15f69d5f6247c287515f
Cr-Commit-Position: refs/heads/master@{#30910}

Powered by Google App Engine
This is Rietveld 408576698