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

Unified Diff: test/codegen/expect/names.js

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/misc.txt ('k') | test/codegen/expect/names.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/names.js
diff --git a/test/codegen/expect/names.js b/test/codegen/expect/names.js
index 670c7f4beb3dd845e1bd4e440ccd73ba44656327..c455af77d0c91cf6a9e3357927f7fbeda3933776 100644
--- a/test/codegen/expect/names.js
+++ b/test/codegen/expect/names.js
@@ -1,40 +1,41 @@
dart_library.library('names', null, /* Imports */[
- 'dart/_runtime',
- 'dart/core'
-], /* Lazy imports */[
-], function(exports, dart, core) {
+ 'dart_sdk'
+], function(exports, dart_sdk) {
'use strict';
- let dartx = dart.dartx;
- exports.exports = 42;
- const _foo$ = Symbol('_foo');
- class Foo extends core.Object {
- [_foo$]() {
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const names = Object.create(null);
+ names.exports = 42;
+ const _foo = Symbol('_foo');
+ names.Foo = class Foo extends core.Object {
+ [_foo]() {
return 123;
}
- }
- dart.setSignature(Foo, {
- methods: () => ({[_foo$]: [dart.dynamic, []]})
+ };
+ dart.setSignature(names.Foo, {
+ methods: () => ({[_foo]: [dart.dynamic, []]})
});
- function _foo() {
+ names._foo = function() {
return 456;
- }
- dart.fn(_foo);
- class Frame extends core.Object {
+ };
+ dart.fn(names._foo);
+ names.Frame = class Frame extends core.Object {
caller(arguments$) {
this.arguments = arguments$;
}
static callee() {
return null;
}
- }
- dart.defineNamedConstructor(Frame, 'caller');
- dart.setSignature(Frame, {
- constructors: () => ({caller: [Frame, [core.List]]}),
+ };
+ dart.defineNamedConstructor(names.Frame, 'caller');
+ dart.setSignature(names.Frame, {
+ constructors: () => ({caller: [names.Frame, [core.List]]}),
statics: () => ({callee: [dart.dynamic, []]}),
names: ['callee']
});
- class Frame2 extends core.Object {}
- dart.defineLazyProperties(Frame2, {
+ names.Frame2 = class Frame2 extends core.Object {};
+ dart.defineLazy(names.Frame2, {
get caller() {
return 100;
},
@@ -44,19 +45,16 @@ dart_library.library('names', null, /* Imports */[
},
set arguments(_) {}
});
- function main() {
- core.print(exports.exports);
- core.print(new Foo()[_foo$]());
- core.print(_foo());
- core.print(new Frame.caller(dart.list([1, 2, 3], core.int)));
- let eval$ = Frame.callee;
+ names.main = function() {
+ core.print(names.exports);
+ core.print(new names.Foo()[_foo]());
+ core.print(names._foo());
+ core.print(new names.Frame.caller(dart.list([1, 2, 3], core.int)));
+ let eval$ = names.Frame.callee;
core.print(eval$);
- core.print(dart.notNull(Frame2.caller) + dart.notNull(Frame2.arguments));
- }
- dart.fn(main);
+ core.print(dart.notNull(names.Frame2.caller) + dart.notNull(names.Frame2.arguments));
+ };
+ dart.fn(names.main);
// Exports:
- exports.Foo = Foo;
- exports.Frame = Frame;
- exports.Frame2 = Frame2;
- exports.main = main;
+ exports.names = names;
});
« no previous file with comments | « test/codegen/expect/misc.txt ('k') | test/codegen/expect/names.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698