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

Issue 2655733003: Thread maybe-assigned through the bytecodes. (Closed)

Created:
3 years, 11 months ago by Jarin
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com, rmcilroy, neis, danno
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Thread maybe-assigned through the bytecodes. This introduces LoadImmutableContextSlot and LoadImmutableCurrentContextSlot bytecodes, which are emitted when reading from never-assigned context slot. There is a subtlety here: the slot are not immutable, the meaning is actually undefined-or-hole-or-immutable. Review-Url: https://codereview.chromium.org/2655733003 Cr-Commit-Position: refs/heads/master@{#43000} Committed: https://chromium.googlesource.com/v8/v8/+/17c2dd388697da626224c371c8181d20d2016d82

Patch Set 1 #

Patch Set 2 : Test #

Patch Set 3 : Rebase #

Patch Set 4 : Fix bytecode expectations (grrrr...) #

Total comments: 4

Patch Set 5 : Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -356 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 2 2 chunks +18 lines, -6 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 1 chunk +12 lines, -4 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 4 chunks +19 lines, -7 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 2 chunks +288 lines, -283 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Delete.golden View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 3 9 chunks +13 lines, -13 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Modules.golden View 1 2 3 12 chunks +25 lines, -25 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/OuterContextVariables.golden View 3 2 chunks +3 lines, -3 lines 0 comments Download
A test/mjsunit/immutable-context-slot-inlining.js View 1 1 chunk +30 lines, -0 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 2 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (26 generated)
Jarin
Could you take a look, please?
3 years, 10 months ago (2017-02-07 13:01:23 UTC) #12
neis
lgtm
3 years, 10 months ago (2017-02-07 13:39:25 UTC) #22
Benedikt Meurer
lgtm
3 years, 10 months ago (2017-02-07 13:43:49 UTC) #23
rmcilroy
Interpreter LGTM, thanks. https://codereview.chromium.org/2655733003/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2655733003/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode791 src/compiler/bytecode-graph-builder.cc:791: environment()->BindAccumulator(node); nit - you could pull ...
3 years, 10 months ago (2017-02-07 14:02:14 UTC) #26
rmcilroy
Actually +danno (see comment on interpreter.cc:564).
3 years, 10 months ago (2017-02-07 14:14:52 UTC) #27
Jarin
https://codereview.chromium.org/2655733003/diff/60001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2655733003/diff/60001/src/compiler/bytecode-graph-builder.cc#newcode791 src/compiler/bytecode-graph-builder.cc:791: environment()->BindAccumulator(node); On 2017/02/07 14:02:14, rmcilroy wrote: > nit - ...
3 years, 10 months ago (2017-02-07 14:31:05 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2655733003/80001
3 years, 10 months ago (2017-02-07 14:31:24 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/v8/v8/+/17c2dd388697da626224c371c8181d20d2016d82
3 years, 10 months ago (2017-02-07 14:54:32 UTC) #34
Michael Hablich
3 years, 10 months ago (2017-02-07 20:19:01 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2680923003/ by hablich@chromium.org.

The reason for reverting is: needed for properly reverting
https://chromium.googlesource.com/v8/v8/+/f3ae5ccf57690d8c2d87c4fe1d10b103ad6....

Powered by Google App Engine
This is Rietveld 408576698