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

Issue 2471033004: [ignition,modules] Introduce bytecodes for loading/storing module variables. (Closed)

Created:
4 years, 1 month ago by neis
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ignition,modules] Introduce bytecodes for loading/storing module variables. This introduces two new bytecodes LdaModuleVariable and StaModuleVariable, replacing the corresponding runtime calls. Support in the bytecode graph builder exists only in the form of runtime calls. BUG=v8:1569 Committed: https://crrev.com/dd155e47bd167b4bb536493579366f8035896233 Cr-Commit-Position: refs/heads/master@{#40825}

Patch Set 1 #

Patch Set 2 : Various changes. #

Patch Set 3 : More comments. #

Total comments: 9

Patch Set 4 : Call runtime in bytecode-graph-builder. #

Patch Set 5 : Address other feedback. #

Total comments: 3

Patch Set 6 : Address feedback. #

Patch Set 7 : Provide context depth to bytecodes. #

Patch Set 8 : Remove now unused LoadModuleContext macro. #

Patch Set 9 : Rebaseline expectations. #

Patch Set 10 : Cosmetics. #

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -105 lines) Patch
M src/bailout-reason.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +19 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -14 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +82 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Modules.golden View 1 2 3 4 5 6 7 8 9 10 24 chunks +36 lines, -90 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 27 (10 generated)
adamk
This looks reasonable to me too for now. I think in future it's quite possible ...
4 years, 1 month ago (2016-11-02 18:43:46 UTC) #2
neis
Ready for review, PTAL.
4 years, 1 month ago (2016-11-03 13:27:51 UTC) #5
rmcilroy
Looks good. A couple of comments but LGTM once addressed. https://codereview.chromium.org/2471033004/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2471033004/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode695 ...
4 years, 1 month ago (2016-11-03 13:58:07 UTC) #6
neis
https://codereview.chromium.org/2471033004/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2471033004/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode695 src/compiler/bytecode-graph-builder.cc:695: void BytecodeGraphBuilder::VisitStaModuleVariable() { UNIMPLEMENTED(); } On 2016/11/03 13:58:06, rmcilroy ...
4 years, 1 month ago (2016-11-03 15:02:25 UTC) #7
neis
On 2016/11/03 15:02:25, neis wrote: > https://codereview.chromium.org/2471033004/diff/40001/src/compiler/bytecode-graph-builder.cc > File src/compiler/bytecode-graph-builder.cc (right): > > https://codereview.chromium.org/2471033004/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode695 > ...
4 years, 1 month ago (2016-11-03 16:38:44 UTC) #9
adamk
lgtm
4 years, 1 month ago (2016-11-03 18:32:33 UTC) #10
neis
https://codereview.chromium.org/2471033004/diff/40001/src/interpreter/bytecode-array-builder.h File src/interpreter/bytecode-array-builder.h (right): https://codereview.chromium.org/2471033004/diff/40001/src/interpreter/bytecode-array-builder.h#newcode102 src/interpreter/bytecode-array-builder.h:102: // Load from/store to the module variable with the ...
4 years, 1 month ago (2016-11-04 10:37:23 UTC) #12
Benedikt Meurer (Google)
https://codereview.chromium.org/2471033004/diff/40001/src/interpreter/interpreter.cc File src/interpreter/interpreter.cc (right): https://codereview.chromium.org/2471033004/diff/40001/src/interpreter/interpreter.cc#newcode962 src/interpreter/interpreter.cc:962: __ IntPtrMul(raw_index, __ IntPtrConstant(-1)), __ IntPtrConstant(1)); On 2016/11/04 10:37:23, ...
4 years, 1 month ago (2016-11-04 13:12:56 UTC) #14
neis
On 2016/11/04 13:12:56, Benedikt Meurer (Google) wrote: > https://codereview.chromium.org/2471033004/diff/40001/src/interpreter/interpreter.cc > File src/interpreter/interpreter.cc (right): > > ...
4 years, 1 month ago (2016-11-04 13:20:15 UTC) #15
Benedikt Meurer
LGTM with nit. https://codereview.chromium.org/2471033004/diff/80001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2471033004/diff/80001/src/code-stub-assembler.cc#newcode1291 src/code-stub-assembler.cc:1291: Nit: Please add some kind of ...
4 years, 1 month ago (2016-11-04 16:45:59 UTC) #16
neis
On 2016/11/04 16:45:59, Benedikt Meurer wrote: > https://codereview.chromium.org/2471033004/diff/80001/src/code-stub-assembler.cc#newcode1291 > src/code-stub-assembler.cc:1291: > Nit: Please add some ...
4 years, 1 month ago (2016-11-07 13:48:44 UTC) #17
neis
On 2016/11/04 16:45:59, Benedikt Meurer wrote: > https://codereview.chromium.org/2471033004/diff/80001/src/code-stub-assembler.cc#newcode1291 > src/code-stub-assembler.cc:1291: > Nit: Please add some ...
4 years, 1 month ago (2016-11-07 13:48:44 UTC) #18
neis
As discussed offline with bmeurer and mstarzinger today, I changed the new bytecodes to take ...
4 years, 1 month ago (2016-11-07 13:52:15 UTC) #19
rmcilroy
Changes LGTM.
4 years, 1 month ago (2016-11-07 16:07:05 UTC) #20
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/2471033004/200001
4 years, 1 month ago (2016-11-08 10:34:49 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 1 month ago (2016-11-08 11:01:10 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:25:46 UTC) #27
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/dd155e47bd167b4bb536493579366f8035896233
Cr-Commit-Position: refs/heads/master@{#40825}

Powered by Google App Engine
This is Rietveld 408576698