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

Issue 2199283002: [modules] Introduce new VariableLocation for module imports/exports. (Closed)

Created:
4 years, 4 months ago by neis
Modified:
4 years, 4 months ago
Reviewers:
Benedikt Meurer, adamk
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, rmcilroy, v8-ppc-ports_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[modules] Introduce new VariableLocation for module imports/exports. Introduces a new VariableLocation MODULE for variables that live in a module's export table. Scope analysis sets this for the approriate variables. Not yet supported by any backend. Also, treats all imports as CONST bindings (including namespace imports), rather than having new special variable modes. BUG= Committed: https://crrev.com/4df91581d1dd74511ea29482117f54e0083807bd Cr-Commit-Position: refs/heads/master@{#38426}

Patch Set 1 #

Patch Set 2 : Comment #

Total comments: 13

Patch Set 3 : Move AllocateModuleVariables call into AllocateVariablesRecursively. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -31 lines) Patch
M src/ast/modules.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M src/ast/modules.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/ast/prettyprinter.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/ast/scopes.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 chunks +24 lines, -1 line 0 comments Download
M src/ast/variables.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 5 chunks +10 lines, -0 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 6 chunks +16 lines, -0 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M src/full-codegen/s390/full-codegen-s390.cc View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M src/globals.h View 1 2 3 3 chunks +5 lines, -7 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 chunks +9 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 2 chunks +70 lines, -4 lines 0 comments Download
D test/mjsunit/harmony/modules.js View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (12 generated)
neis
PTAL
4 years, 4 months ago (2016-08-02 14:52:04 UTC) #8
adamk
https://codereview.chromium.org/2199283002/diff/20001/src/ast/modules.cc File src/ast/modules.cc (right): https://codereview.chromium.org/2199283002/diff/20001/src/ast/modules.cc#newcode125 src/ast/modules.cc:125: Can probably just drop this file from the CL ...
4 years, 4 months ago (2016-08-02 16:34:31 UTC) #9
neis
https://codereview.chromium.org/2199283002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2199283002/diff/20001/src/ast/scopes.cc#newcode864 src/ast/scopes.cc:864: scope = scope->inner_scope(); On 2016/08/02 16:34:31, adamk wrote: > ...
4 years, 4 months ago (2016-08-03 09:16:30 UTC) #10
adamk
https://codereview.chromium.org/2199283002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2199283002/diff/20001/src/ast/scopes.cc#newcode864 src/ast/scopes.cc:864: scope = scope->inner_scope(); On 2016/08/03 09:16:30, neis wrote: > ...
4 years, 4 months ago (2016-08-03 17:51:26 UTC) #11
neis
On 2016/08/03 17:51:26, adamk wrote: > https://codereview.chromium.org/2199283002/diff/20001/src/ast/scopes.cc > File src/ast/scopes.cc (right): > > https://codereview.chromium.org/2199283002/diff/20001/src/ast/scopes.cc#newcode864 > ...
4 years, 4 months ago (2016-08-05 07:32:28 UTC) #12
neis
+bmeurer, ptal at compilers
4 years, 4 months ago (2016-08-05 07:33:40 UTC) #14
Benedikt Meurer
LGTM (rubber-stamped)
4 years, 4 months ago (2016-08-05 07:48:46 UTC) #15
adamk
lgtm
4 years, 4 months ago (2016-08-05 17:45:30 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/2199283002/60001
4 years, 4 months ago (2016-08-08 09:19:16 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-08 09:46:58 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 09:49:38 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4df91581d1dd74511ea29482117f54e0083807bd
Cr-Commit-Position: refs/heads/master@{#38426}

Powered by Google App Engine
This is Rietveld 408576698