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

Issue 2353633002: [modules] Explicitly keep track of module requests. (Closed)

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

Description

[modules] Explicitly keep track of module requests. We must keep track of the exact order in which modules are requested. To do so, maintain a map from module specifiers to position while parsing (in ModuleDescriptor). Descriptor entries now refer to that position rather than the string. When generating the ModuleInfo, turn this map into an array of specifiers. We don't need the map anymore later on, so we do not reconstruct it when deserializing again. BUG=v8:1569 Committed: https://crrev.com/c5785bfb92c0380b93c4ec57dc2326da90cf0390 Cr-Commit-Position: refs/heads/master@{#39519}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -58 lines) Patch
M src/ast/modules.h View 1 2 3 6 chunks +26 lines, -6 lines 0 comments Download
M src/ast/modules.cc View 1 2 3 10 chunks +20 lines, -19 lines 0 comments Download
M src/ast/scopeinfo.cc View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M src/ast/scopes.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects.h View 2 chunks +7 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 3 chunks +38 lines, -30 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
neis
ptal
4 years, 3 months ago (2016-09-19 19:49:34 UTC) #11
adamk
https://codereview.chromium.org/2353633002/diff/40001/src/ast/modules.cc File src/ast/modules.cc (right): https://codereview.chromium.org/2353633002/diff/40001/src/ast/modules.cc#newcode91 src/ast/modules.cc:91: CHECK(Smi::IsValid(module_request)); Add a TODO to handle this earlier? https://codereview.chromium.org/2353633002/diff/40001/src/ast/modules.h ...
4 years, 3 months ago (2016-09-19 19:57:21 UTC) #12
neis
https://codereview.chromium.org/2353633002/diff/40001/src/ast/modules.cc File src/ast/modules.cc (right): https://codereview.chromium.org/2353633002/diff/40001/src/ast/modules.cc#newcode91 src/ast/modules.cc:91: CHECK(Smi::IsValid(module_request)); On 2016/09/19 19:57:20, adamk wrote: > Add a ...
4 years, 3 months ago (2016-09-19 21:13:47 UTC) #13
adamk
lgtm
4 years, 3 months ago (2016-09-19 21:36:16 UTC) #14
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/2353633002/60001
4 years, 3 months ago (2016-09-19 21:38:47 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-19 22:06:52 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 22:08:31 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c5785bfb92c0380b93c4ec57dc2326da90cf0390
Cr-Commit-Position: refs/heads/master@{#39519}

Powered by Google App Engine
This is Rietveld 408576698