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

Issue 918373002: Strip Interface class of most of its logic, make it all about Module exports (Closed)

Created:
5 years, 10 months ago by adamk
Modified:
5 years, 10 months ago
Reviewers:
rossberg
CC:
v8-dev, arv (Not doing code reviews)
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Strip Interface class of most of its logic, make it all about Module exports This gets Variable and VariableProxy out of the business of worrying about Interfaces. At the same time, get rid of the notion of "module variables". In ES6, variables that refer to modules will be simply be CONST bindings to module namespace objects. The only change in logic here is one more early error: duplicate export names are now rejected. BUG=v8:1569 LOG=n Committed: https://crrev.com/522937cb494559d209bc53d8251458f33b4e9864 Cr-Commit-Position: refs/heads/master@{#26708}

Patch Set 1 : Merged to trunk #

Total comments: 8

Patch Set 2 : Deal with nits #

Patch Set 3 : Merged to trunk #

Patch Set 4 : Properly freeze interface at the end of ParseModule #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -612 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/arm64/full-codegen-arm64.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/ast.h View 1 2 12 chunks +11 lines, -54 lines 0 comments Download
M src/ast.cc View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M src/ast-numbering.cc View 1 chunk +0 lines, -7 lines 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 2 chunks +1 line, -3 lines 0 comments Download
M src/contexts.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen.cc View 5 chunks +5 lines, -13 lines 0 comments Download
M src/globals.h View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M src/hydrogen.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/interface.h View 1 3 chunks +20 lines, -123 lines 0 comments Download
M src/interface.cc View 4 chunks +24 lines, -189 lines 0 comments Download
M src/messages.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/mips/full-codegen-mips.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/mips64/full-codegen-mips64.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/parser.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M src/parser.cc View 1 2 3 22 chunks +25 lines, -74 lines 0 comments Download
M src/ppc/full-codegen-ppc.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/prettyprinter.cc View 5 chunks +0 lines, -19 lines 0 comments Download
M src/rewriter.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-scopes.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M src/scopeinfo.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/scopeinfo.cc View 1 2 1 chunk +2 lines, -9 lines 0 comments Download
M src/scopes.h View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M src/scopes.cc View 1 2 6 chunks +6 lines, -45 lines 0 comments Download
M src/typing.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/variables.h View 4 chunks +1 line, -7 lines 0 comments Download
M src/variables.cc View 3 chunks +2 lines, -4 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/x87/full-codegen-x87.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
adamk
5 years, 10 months ago (2015-02-12 22:30:28 UTC) #2
rossberg
LGTM, modulo some nits. It hurts to see the beautiful unification machinery gone... https://codereview.chromium.org/918373002/diff/20001/src/globals.h File ...
5 years, 10 months ago (2015-02-16 12:46:43 UTC) #4
adamk
https://codereview.chromium.org/918373002/diff/20001/src/globals.h File src/globals.h (right): https://codereview.chromium.org/918373002/diff/20001/src/globals.h#newcode756 src/globals.h:756: return (mode >= CONST && mode <= CONST) || ...
5 years, 10 months ago (2015-02-17 19:59:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918373002/80001
5 years, 10 months ago (2015-02-17 20:29:04 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 10 months ago (2015-02-17 20:51:30 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-17 20:51:47 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/522937cb494559d209bc53d8251458f33b4e9864
Cr-Commit-Position: refs/heads/master@{#26708}

Powered by Google App Engine
This is Rietveld 408576698