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

Issue 1403943004: [Interpreter] Add support for local context loads and stores. (Closed)

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

Description

[Interpreter] Add support for local context loads and stores. Adds support for local context loads and stores. Also adds support for creation of new block contexts (e.g., for let variables) and initializing const / let variables with the hole appropriately. Also adds some checks to ensure BytecodeArrayBuilder::context_count is set appropriately and fixes tests to do so. Adds the bytecode StaContextSlot. BUG=v8:4280 LOG=N Committed: https://crrev.com/2c8340dac438c317f6a66a45886aa25bd23bd351 Cr-Commit-Position: refs/heads/master@{#31343}

Patch Set 1 : #

Total comments: 18

Patch Set 2 : Review comments and add support for context parameters. #

Total comments: 2

Patch Set 3 : Add back outer_ &&] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+681 lines, -153 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 +2 lines, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 2 chunks +18 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 6 chunks +19 lines, -16 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 4 chunks +13 lines, -8 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 22 chunks +210 lines, -91 lines 0 comments Download
M src/interpreter/bytecodes.h View 3 chunks +6 lines, -4 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 10 chunks +227 lines, -17 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 40 chunks +100 lines, -0 lines 0 comments Download
M test/unittests/compiler/bytecode-graph-builder-unittest.cc View 9 chunks +9 lines, -0 lines 0 comments Download
M test/unittests/compiler/interpreter-assembler-unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 12 chunks +30 lines, -14 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-iterator-unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (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/1403943004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403943004/1
5 years, 2 months ago (2015-10-15 13:23:41 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/8790) v8_linux64_asan_rel on ...
5 years, 2 months ago (2015-10-15 13:24:36 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/1403943004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403943004/20001
5 years, 2 months ago (2015-10-15 13:56:46 UTC) #7
rmcilroy
PTAL, thanks.
5 years, 2 months ago (2015-10-15 14:04:21 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel/builds/10662)
5 years, 2 months ago (2015-10-15 15:46:23 UTC) #11
Michael Starzinger
LGTM with comments. https://codereview.chromium.org/1403943004/diff/20001/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/1403943004/diff/20001/src/interpreter/bytecode-array-builder.cc#newcode86 src/interpreter/bytecode-array-builder.cc:86: parameter_count_, constant_pool); nit: If we use ...
5 years, 2 months ago (2015-10-16 09:10:04 UTC) #12
oth
lgtm modulo comments. Thanks! https://codereview.chromium.org/1403943004/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1403943004/diff/20001/src/interpreter/bytecode-generator.cc#newcode225 src/interpreter/bytecode-generator.cc:225: bool hole_init = mode == ...
5 years, 2 months ago (2015-10-16 09:30:44 UTC) #13
rmcilroy
Review comments addressed and also added support for context allocated parameters with some tests, PTAL. ...
5 years, 2 months ago (2015-10-16 11:19:04 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403943004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403943004/40001
5 years, 2 months ago (2015-10-16 11:26:42 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-16 12:21:02 UTC) #18
oth
Thanks, looks good here.
5 years, 2 months ago (2015-10-16 13:12:36 UTC) #19
Michael Starzinger
Yep, still looking good. https://codereview.chromium.org/1403943004/diff/20001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1403943004/diff/20001/src/interpreter/bytecode-generator.cc#newcode42 src/interpreter/bytecode-generator.cc:42: if (outer_ && !is_function_context_) { ...
5 years, 2 months ago (2015-10-16 13:29:06 UTC) #20
rmcilroy
https://codereview.chromium.org/1403943004/diff/40001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/1403943004/diff/40001/src/interpreter/bytecode-generator.cc#newcode42 src/interpreter/bytecode-generator.cc:42: if (should_pop_context_) { On 2015/10/16 13:29:06, Michael Starzinger wrote: ...
5 years, 2 months ago (2015-10-16 14:11:35 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403943004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403943004/60001
5 years, 2 months ago (2015-10-16 14:11:47 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 2 months ago (2015-10-16 15:29:10 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 15:29:27 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2c8340dac438c317f6a66a45886aa25bd23bd351
Cr-Commit-Position: refs/heads/master@{#31343}

Powered by Google App Engine
This is Rietveld 408576698