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

Issue 1425633002: [Interpreter] Add support for loading from / storing to outer context variables. (Closed)

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

Description

[Interpreter] Add support for loading from / storing to outer context variables. Adds support for loading from and storing to outer context variables. Also adds support for declaring functions on contexts and locals. Finally, fixes a couple of issues with StaContextSlot where we weren't emitting the write barrier and therefore would crash in the GC. Also added code so that --print-bytecode will output the function name before the bytecodes, and replaces MachineType with StoreRepresentation in RawMachineAssembler::Store and updates tests. BUG=v8:4280 LOG=N Committed: https://crrev.com/c0c214daa845dda0085563bfc44c8545fa94adf4 Cr-Commit-Position: refs/heads/master@{#31584}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Move RawMachineAssembler to use StoreRepresentation() instead of MachineType(). #

Patch Set 3 : Fix bot errors #

Patch Set 4 : Fix interpreter-assembler-unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -134 lines) Patch
M src/compiler/interpreter-assembler.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 4 chunks +58 lines, -13 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 chunk +4 lines, -1 line 0 comments Download
M test/cctest/compiler/c-signature.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M test/cctest/compiler/codegen-tester.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/compiler/test-run-machops.cc View 1 60 chunks +92 lines, -74 lines 0 comments Download
M test/cctest/compiler/test-run-native-calls.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 5 chunks +74 lines, -3 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 4 chunks +43 lines, -6 lines 0 comments Download
M test/unittests/compiler/arm/instruction-selector-arm-unittest.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc View 1 2 4 chunks +8 lines, -5 lines 0 comments Download
M test/unittests/compiler/interpreter-assembler-unittest.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M test/unittests/compiler/mips/instruction-selector-mips-unittest.cc View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M test/unittests/compiler/mips64/instruction-selector-mips64-unittest.cc View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M test/unittests/compiler/x64/instruction-selector-x64-unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (11 generated)
rmcilroy
Orion / Michi, please take a look, thanks.
5 years, 1 month ago (2015-10-26 13:03:10 UTC) #2
Michael Starzinger
Looking good, just one suggestion. https://codereview.chromium.org/1425633002/diff/1/src/compiler/interpreter-assembler.cc File src/compiler/interpreter-assembler.cc (right): https://codereview.chromium.org/1425633002/diff/1/src/compiler/interpreter-assembler.cc#newcode320 src/compiler/interpreter-assembler.cc:320: kFullWriteBarrier); Hehe, yeah, this ...
5 years, 1 month ago (2015-10-26 13:28:13 UTC) #3
oth
lgtm with minor comment. https://codereview.chromium.org/1425633002/diff/1/src/interpreter/interpreter.cc File src/interpreter/interpreter.cc (right): https://codereview.chromium.org/1425633002/diff/1/src/interpreter/interpreter.cc#newcode66 src/interpreter/interpreter.cc:66: OFStream os(stdout); Left over debugging?
5 years, 1 month ago (2015-10-26 14:13:27 UTC) #4
rmcilroy
Comments addressed, PTAL. https://codereview.chromium.org/1425633002/diff/1/src/compiler/interpreter-assembler.cc File src/compiler/interpreter-assembler.cc (right): https://codereview.chromium.org/1425633002/diff/1/src/compiler/interpreter-assembler.cc#newcode320 src/compiler/interpreter-assembler.cc:320: kFullWriteBarrier); On 2015/10/26 13:28:13, Michael Starzinger ...
5 years, 1 month ago (2015-10-26 15:37:51 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/1425633002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425633002/20001
5 years, 1 month ago (2015-10-26 15:38:07 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_mips64el_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mips64el_compile_rel/builds/6002) v8_linux_mipsel_compile_rel on ...
5 years, 1 month ago (2015-10-26 15:41:19 UTC) #11
Michael Starzinger
LGTM.
5 years, 1 month ago (2015-10-26 16:05:29 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425633002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425633002/40001
5 years, 1 month ago (2015-10-26 16:24:34 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/7939)
5 years, 1 month ago (2015-10-26 16:39:57 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425633002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425633002/60001
5 years, 1 month ago (2015-10-26 16:57:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425633002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425633002/60001
5 years, 1 month ago (2015-10-26 17:56:36 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-10-26 18:11:27 UTC) #23
commit-bot: I haz the power
5 years, 1 month ago (2015-10-26 18:11:42 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c0c214daa845dda0085563bfc44c8545fa94adf4
Cr-Commit-Position: refs/heads/master@{#31584}

Powered by Google App Engine
This is Rietveld 408576698