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

Side by Side Diff: pkg/dev_compiler/test/codegen_expected/async_helper.js

Issue 2869733006: Revert "Revert "fix #27256, track type bounds for generic functions"" (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 define(['dart_sdk'], function(dart_sdk) { 1 define(['dart_sdk'], function(dart_sdk) {
2 'use strict'; 2 'use strict';
3 const core = dart_sdk.core; 3 const core = dart_sdk.core;
4 const dart = dart_sdk.dart; 4 const dart = dart_sdk.dart;
5 const dartx = dart_sdk.dartx; 5 const dartx = dart_sdk.dartx;
6 const async_helper = Object.create(null); 6 const async_helper = Object.create(null);
7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.functionType(dart .dynamic, [])))(); 7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.fnTypeFuzzy(dart. dynamic, [])))();
8 let StringToException = () => (StringToException = dart.constFn(dart.definiteF unctionType(core.Exception, [core.String])))(); 8 let StringToException = () => (StringToException = dart.constFn(dart.fnType(co re.Exception, [core.String])))();
9 let _Action0Tovoid = () => (_Action0Tovoid = dart.constFn(dart.definiteFunctio nType(dart.void, [async_helper._Action0])))(); 9 let _Action0Tovoid = () => (_Action0Tovoid = dart.constFn(dart.fnType(dart.voi d, [async_helper._Action0])))();
10 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da rt.void, [])))(); 10 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.fnType(dart.void, []))) ();
11 let dynamicTovoid = () => (dynamicTovoid = dart.constFn(dart.definiteFunctionT ype(dart.void, [dart.dynamic])))(); 11 let dynamicTovoid = () => (dynamicTovoid = dart.constFn(dart.fnType(dart.void, [dart.dynamic])))();
12 let FnTovoid = () => (FnTovoid = dart.constFn(dart.definiteFunctionType(dart.v oid, [VoidTodynamic()])))(); 12 let FnTovoid = () => (FnTovoid = dart.constFn(dart.fnType(dart.void, [VoidTody namic()])))();
13 dart.defineLazy(async_helper, { 13 dart.defineLazy(async_helper, {
14 get _initialized() { 14 get _initialized() {
15 return false; 15 return false;
16 }, 16 },
17 set _initialized(_) {} 17 set _initialized(_) {}
18 }); 18 });
19 async_helper._Action0 = dart.typedef('_Action0', () => dart.functionType(dart. void, [])); 19 async_helper._Action0 = dart.typedef('_Action0', () => dart.fnTypeFuzzy(dart.v oid, []));
20 dart.defineLazy(async_helper, { 20 dart.defineLazy(async_helper, {
21 get _onAsyncEnd() { 21 get _onAsyncEnd() {
22 return null; 22 return null;
23 }, 23 },
24 set _onAsyncEnd(_) {}, 24 set _onAsyncEnd(_) {},
25 get _asyncLevel() { 25 get _asyncLevel() {
26 return 0; 26 return 0;
27 }, 27 },
28 set _asyncLevel(_) {} 28 set _asyncLevel(_) {}
29 }); 29 });
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 }; 83 };
84 dart.fn(async_helper.asyncTest, FnTovoid()); 84 dart.fn(async_helper.asyncTest, FnTovoid());
85 dart.trackLibraries("async_helper", { 85 dart.trackLibraries("async_helper", {
86 "async_helper.dart": async_helper 86 "async_helper.dart": async_helper
87 }, null); 87 }, null);
88 // Exports: 88 // Exports:
89 return { 89 return {
90 async_helper: async_helper 90 async_helper: async_helper
91 }; 91 };
92 }); 92 });
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js ('k') | pkg/dev_compiler/test/codegen_expected/closure.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698