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

Side by Side Diff: test/codegen/expect/opassign.js

Issue 1100633006: Generate static calls for Object fields and methods (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/misc.js ('k') | test/generated_sdk/lib/core/object.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var opassign; 1 var opassign;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 dart.copyProperties(exports, { 4 dart.copyProperties(exports, {
5 get index() { 5 get index() {
6 core.print('called "index" getter'); 6 core.print('called "index" getter');
7 return 0; 7 return 0;
8 } 8 }
9 }); 9 });
10 let _foo = Symbol('_foo');
10 dart.defineLazyProperties(exports, { 11 dart.defineLazyProperties(exports, {
11 get _foo() { 12 get [_foo]() {
12 return new Foo(); 13 return new Foo();
13 } 14 }
14 }); 15 });
15 dart.copyProperties(exports, { 16 dart.copyProperties(exports, {
16 get foo() { 17 get foo() {
17 core.print('called "foo" getter'); 18 core.print('called "foo" getter');
18 return exports._foo; 19 return exports._foo;
19 } 20 }
20 }); 21 });
21 class Foo extends core.Object { 22 class Foo extends core.Object {
(...skipping 25 matching lines...) Expand all
47 f.set(i$, dart.dsend(f.get(i$), '+', f.get(exports.index))); 48 f.set(i$, dart.dsend(f.get(i$), '+', f.get(exports.index)));
48 } 49 }
49 // Function forcePostfix: (dynamic) → dynamic 50 // Function forcePostfix: (dynamic) → dynamic
50 function forcePostfix(x) { 51 function forcePostfix(x) {
51 } 52 }
52 // Exports: 53 // Exports:
53 exports.Foo = Foo; 54 exports.Foo = Foo;
54 exports.main = main; 55 exports.main = main;
55 exports.forcePostfix = forcePostfix; 56 exports.forcePostfix = forcePostfix;
56 })(opassign || (opassign = {})); 57 })(opassign || (opassign = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/misc.js ('k') | test/generated_sdk/lib/core/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698