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

Issue 2465283004: [modules] Maintain array of cells for imports and local exports. (Closed)

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

Description

[modules] Maintain array of cells for imports and local exports. This makes use of the newly introduced cell indices to speed up variable accesses. Imports and local exports are now directly stored in (separate) arrays. In the future, we may merge the two arrays into a single one, or even into the module context. This CL also replaces the LoadImport and LoadExport runtime functions with a single LoadVariable taking a variable index as argument (rather than a name). BUG=v8:1569 Committed: https://crrev.com/21463f73e97deefe89177ce6b65a81e898c2acc6 Cr-Commit-Position: refs/heads/master@{#40808}

Patch Set 1 #

Patch Set 2 : Various changes. #

Total comments: 8

Patch Set 3 : Address feedback. #

Patch Set 4 : Rebase. #

Patch Set 5 : Rename parameter also in header file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -161 lines) Patch
M src/ast/modules.h View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M src/ast/modules.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/debug/debug-scopes.cc View 1 1 chunk +2 lines, -17 lines 0 comments Download
M src/factory.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 2 chunks +8 lines, -29 lines 0 comments Download
M src/objects.h View 1 2 3 4 4 chunks +17 lines, -9 lines 0 comments Download
M src/objects.cc View 1 2 3 5 chunks +51 lines, -18 lines 0 comments Download
M src/objects-inl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +2 lines, -3 lines 0 comments Download
M src/runtime/runtime-module.cc View 1 chunk +6 lines, -15 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Modules.golden View 1 2 3 14 chunks +56 lines, -66 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
adamk
This looks reasonable overall, I think most comments I would have made already have "XXX" ...
4 years, 1 month ago (2016-11-02 18:41:59 UTC) #2
neis
Ready for review now.
4 years, 1 month ago (2016-11-03 12:53:40 UTC) #4
adamk
https://codereview.chromium.org/2465283004/diff/20001/src/ast/modules.h File src/ast/modules.h (right): https://codereview.chromium.org/2465283004/diff/20001/src/ast/modules.h#newcode115 src/ast/modules.h:115: static CellIndexKind cell_index_kind(int cell_index); The underscore naming for a ...
4 years, 1 month ago (2016-11-03 18:30:45 UTC) #5
neis
https://codereview.chromium.org/2465283004/diff/20001/src/ast/modules.h File src/ast/modules.h (right): https://codereview.chromium.org/2465283004/diff/20001/src/ast/modules.h#newcode115 src/ast/modules.h:115: static CellIndexKind cell_index_kind(int cell_index); On 2016/11/03 18:30:45, adamk wrote: ...
4 years, 1 month ago (2016-11-04 10:14:39 UTC) #6
adamk
lgtm
4 years, 1 month ago (2016-11-04 17:15:35 UTC) #7
neis
On 2016/11/04 17:15:35, adamk wrote: > lgtm +jgruber for debug/
4 years, 1 month ago (2016-11-07 09:48:13 UTC) #9
neis
+rmcilroy for interpreter
4 years, 1 month ago (2016-11-07 09:49:02 UTC) #11
jgruber
lgtm for debug/
4 years, 1 month ago (2016-11-07 10:47:26 UTC) #12
rmcilroy
interpreter/ lgtm
4 years, 1 month ago (2016-11-07 14:55:25 UTC) #13
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/2465283004/40001
4 years, 1 month ago (2016-11-07 14:55:50 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/11910) v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-07 14:59:04 UTC) #17
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/2465283004/100001
4 years, 1 month ago (2016-11-07 15:55:54 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 1 month ago (2016-11-07 16:23:28 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:24:57 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/21463f73e97deefe89177ce6b65a81e898c2acc6
Cr-Commit-Position: refs/heads/master@{#40808}

Powered by Google App Engine
This is Rietveld 408576698