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

Issue 2108193003: [modules] AST and parser rework. (Closed)

Created:
4 years, 5 months ago by neis
Modified:
4 years, 5 months ago
Base URL:
https://chromium.googlesource.com/v8/v8.git@anonymous-declarations
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[modules] AST and parser rework. Highlights: - Record all imports and exports in the ModuleDescriptor. - Remove ImportDeclaration; instead, introduce a new variable kind for imports. - Set name on default exported anonymous functions. Still to do: declaration of namespace imports. BUG=v8:1569 Committed: https://crrev.com/0e000a87f1057e8eacc9516eb81d43664ab58d17 Cr-Commit-Position: refs/heads/master@{#37815}

Patch Set 1 : . #

Total comments: 50

Patch Set 2 : Address comments. #

Patch Set 3 : Rebase. #

Patch Set 4 : GetAttributesAndBindingFlags #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -413 lines) Patch
M src/asmjs/asm-wasm-builder.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M src/ast/ast.h View 1 2 3 chunks +1 line, -54 lines 0 comments Download
M src/ast/ast.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M src/ast/ast-expression-rewriter.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M src/ast/ast-literal-reindexer.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M src/ast/ast-numbering.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M src/ast/modules.h View 1 2 chunks +66 lines, -80 lines 0 comments Download
M src/ast/modules.cc View 1 1 chunk +102 lines, -34 lines 0 comments Download
M src/ast/prettyprinter.cc View 1 2 2 chunks +0 lines, -11 lines 0 comments Download
M src/ast/scopes.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/ast/variables.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/bailout-reason.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M src/compiler/ast-loop-assignment-analyzer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/contexts.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M src/crankshaft/typing.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
M src/globals.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M src/parsing/parser.h View 1 2 3 chunks +14 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 16 chunks +144 lines, -131 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 chunks +15 lines, -26 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
neis
here we go
4 years, 5 months ago (2016-07-13 17:03:41 UTC) #4
adamk
https://codereview.chromium.org/2108193003/diff/20001/src/ast/modules.cc File src/ast/modules.cc (right): https://codereview.chromium.org/2108193003/diff/20001/src/ast/modules.cc#newcode16 src/ast/modules.cc:16: ModuleEntry* entry = new (zone->New(sizeof(ModuleEntry))) ModuleEntry(loc); If you make ...
4 years, 5 months ago (2016-07-13 18:38:22 UTC) #5
neis
https://codereview.chromium.org/2108193003/diff/20001/src/ast/modules.cc File src/ast/modules.cc (right): https://codereview.chromium.org/2108193003/diff/20001/src/ast/modules.cc#newcode16 src/ast/modules.cc:16: ModuleEntry* entry = new (zone->New(sizeof(ModuleEntry))) ModuleEntry(loc); On 2016/07/13 18:38:21, ...
4 years, 5 months ago (2016-07-14 10:28:24 UTC) #6
adamk
This looks good to me with an updated/fleshed-out CL description. https://codereview.chromium.org/2108193003/diff/20001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2108193003/diff/20001/src/parsing/parser.cc#newcode1342 ...
4 years, 5 months ago (2016-07-14 18:26:33 UTC) #7
neis
> https://codereview.chromium.org/2108193003/diff/20001/src/parsing/parser.cc#newcode1342 > src/parsing/parser.cc:1342: void* > Parser::ParseModuleItemList(ZoneList<Statement*>* body, bool* ok) { > On 2016/07/14 10:28:24, ...
4 years, 5 months ago (2016-07-15 08:17:06 UTC) #8
neis
https://codereview.chromium.org/2108193003/diff/20001/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/2108193003/diff/20001/src/contexts.cc#newcode208 src/contexts.cc:208: *binding_flags = BINDING_IS_INITIALIZED; On 2016/07/14 10:28:23, neis wrote: > ...
4 years, 5 months ago (2016-07-15 08:46:32 UTC) #10
neis
+ahaas for asmjs, +bmeurer for compiler
4 years, 5 months ago (2016-07-15 08:50:58 UTC) #12
ahaas
On 2016/07/15 at 08:50:58, neis wrote: > +ahaas for asmjs, +bmeurer for compiler wasm lgtm
4 years, 5 months ago (2016-07-15 08:52:41 UTC) #13
adamk
lgtm
4 years, 5 months ago (2016-07-15 18:27:53 UTC) #15
Benedikt Meurer
lgtm
4 years, 5 months ago (2016-07-16 12:59:22 UTC) #16
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/2108193003/100001
4 years, 5 months ago (2016-07-18 07:04:10 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 5 months ago (2016-07-18 07:27:17 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 07:29:36 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0e000a87f1057e8eacc9516eb81d43664ab58d17
Cr-Commit-Position: refs/heads/master@{#37815}

Powered by Google App Engine
This is Rietveld 408576698