Teach ModuleDescriptor about basic local exports
authoradamk <adamk@chromium.org>
Thu, 19 Feb 2015 20:14:55 +0000 (12:14 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Feb 2015 20:15:13 +0000 (20:15 +0000)
commita538d945e39cb653674ef244973ab21d128563d7
treeb953ceddc2ecb5da87a174920f7f6783a72889fd
parente0110920d6f98f0ba2ac0d680f635ae3f094a04e
Teach ModuleDescriptor about basic local exports

Add() becomes AddLocalExport, which takes an export_name and a local_name.
New parsing tests exercise this.

Also start generating exports for default exports (though this doesn't yet
handle anonymous default exports).

BUG=v8:1569
LOG=n

Review URL: https://codereview.chromium.org/934323004

Cr-Commit-Position: refs/heads/master@{#26758}
16 files changed:
src/ast-value-factory.h
src/messages.js
src/modules.cc
src/modules.h
src/parser.cc
src/parser.h
src/scopeinfo.cc
test/cctest/cctest.status
test/cctest/test-parsing.cc
test/message/export-duplicate-as.js [new file with mode: 0644]
test/message/export-duplicate-as.out [new file with mode: 0644]
test/message/export-duplicate-default.js [new file with mode: 0644]
test/message/export-duplicate-default.out [new file with mode: 0644]
test/message/export-duplicate.js [new file with mode: 0644]
test/message/export-duplicate.out [new file with mode: 0644]
test/message/testcfg.py