OLD | NEW |
1 dart_library.library('language/cha_deopt2_test', null, /* Imports */[ | 1 dart_library.library('language/cha_deopt2_test', null, /* Imports */[ |
2 'dart_sdk', | 2 'dart_sdk', |
3 'expect' | 3 'expect' |
4 ], function load__cha_deopt2_test(exports, dart_sdk, expect) { | 4 ], function load__cha_deopt2_test(exports, dart_sdk, expect) { |
5 'use strict'; | 5 'use strict'; |
6 const core = dart_sdk.core; | 6 const core = dart_sdk.core; |
7 const _interceptors = dart_sdk._interceptors; | 7 const _interceptors = dart_sdk._interceptors; |
8 const dart = dart_sdk.dart; | 8 const dart = dart_sdk.dart; |
9 const dartx = dart_sdk.dartx; | 9 const dartx = dart_sdk.dartx; |
10 const expect$ = expect.expect; | 10 const expect$ = expect.expect; |
(...skipping 10 matching lines...) Expand all Loading... |
21 expect$.Expect.equals(1, cha_deopt2_test.bla()); | 21 expect$.Expect.equals(1, cha_deopt2_test.bla()); |
22 loadLibrary().then(dart.dynamic)(dart.fn(_ => { | 22 loadLibrary().then(dart.dynamic)(dart.fn(_ => { |
23 cha_deopt2_test.loaded = true; | 23 cha_deopt2_test.loaded = true; |
24 expect$.Expect.equals(1, cha_deopt2_test.bla()); | 24 expect$.Expect.equals(1, cha_deopt2_test.bla()); |
25 }, dynamicTodynamic())); | 25 }, dynamicTodynamic())); |
26 }; | 26 }; |
27 dart.fn(cha_deopt2_test.main, VoidTodynamic()); | 27 dart.fn(cha_deopt2_test.main, VoidTodynamic()); |
28 cha_deopt2_test.make_array = function() { | 28 cha_deopt2_test.make_array = function() { |
29 try { | 29 try { |
30 if (dart.test(cha_deopt2_test.loaded)) { | 30 if (dart.test(cha_deopt2_test.loaded)) { |
31 return [new cha_deopt2_lib.A(), new cha_deopt2_lib.B(), new cha_deopt2_l
ib.C(), new cha_deopt2_lib.D(), new cha_deopt2_lib.E(), cha_deopt2_deferred_lib.
make_u()]; | 31 return JSArrayOfObject().of([new cha_deopt2_lib.A(), new cha_deopt2_lib.
B(), new cha_deopt2_lib.C(), new cha_deopt2_lib.D(), new cha_deopt2_lib.E(), cha
_deopt2_deferred_lib.make_u()]); |
32 } else { | 32 } else { |
33 return JSArrayOfObject().of([new cha_deopt2_lib.A(), new cha_deopt2_lib.
B(), new cha_deopt2_lib.C(), new cha_deopt2_lib.D(), new cha_deopt2_lib.E(), new
cha_deopt2_lib.T()]); | 33 return JSArrayOfObject().of([new cha_deopt2_lib.A(), new cha_deopt2_lib.
B(), new cha_deopt2_lib.C(), new cha_deopt2_lib.D(), new cha_deopt2_lib.E(), new
cha_deopt2_lib.T()]); |
34 } | 34 } |
35 } catch (e) { | 35 } catch (e) { |
36 } | 36 } |
37 | 37 |
38 }; | 38 }; |
39 dart.fn(cha_deopt2_test.make_array, VoidTodynamic()); | 39 dart.fn(cha_deopt2_test.make_array, VoidTodynamic()); |
40 cha_deopt2_test.bla = function() { | 40 cha_deopt2_test.bla = function() { |
41 let count = 0; | 41 let count = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
54 cha_deopt2_deferred_lib.U = class U extends cha_deopt2_lib.T {}; | 54 cha_deopt2_deferred_lib.U = class U extends cha_deopt2_lib.T {}; |
55 cha_deopt2_deferred_lib.make_u = function() { | 55 cha_deopt2_deferred_lib.make_u = function() { |
56 return new cha_deopt2_deferred_lib.U(); | 56 return new cha_deopt2_deferred_lib.U(); |
57 }; | 57 }; |
58 dart.fn(cha_deopt2_deferred_lib.make_u, VoidTodynamic()); | 58 dart.fn(cha_deopt2_deferred_lib.make_u, VoidTodynamic()); |
59 // Exports: | 59 // Exports: |
60 exports.cha_deopt2_test = cha_deopt2_test; | 60 exports.cha_deopt2_test = cha_deopt2_test; |
61 exports.cha_deopt2_lib = cha_deopt2_lib; | 61 exports.cha_deopt2_lib = cha_deopt2_lib; |
62 exports.cha_deopt2_deferred_lib = cha_deopt2_deferred_lib; | 62 exports.cha_deopt2_deferred_lib = cha_deopt2_deferred_lib; |
63 }); | 63 }); |
OLD | NEW |