Index: test/codegen/expect/language/mega_load_test.js |
diff --git a/test/codegen/expect/language/mega_load_test.js b/test/codegen/expect/language/mega_load_test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bf43369b0710c0118aafbd87b2eff8f594dc907e |
--- /dev/null |
+++ b/test/codegen/expect/language/mega_load_test.js |
@@ -0,0 +1,302 @@ |
+dart_library.library('language/mega_load_test', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__mega_load_test(exports, dart_sdk, expect) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const expect$ = expect.expect; |
+ const mega_load_test = Object.create(null); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))(); |
+ mega_load_test.Base = class Base extends core.Object { |
+ new() { |
+ this.f = null; |
+ } |
+ }; |
+ mega_load_test.A = class A extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 0; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.A, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.A, [])}) |
+ }); |
+ mega_load_test.B = class B extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 1; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.B, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.B, [])}) |
+ }); |
+ mega_load_test.C = class C extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 2; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.C, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.C, [])}) |
+ }); |
+ mega_load_test.D = class D extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 3; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.D, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.D, [])}) |
+ }); |
+ mega_load_test.E = class E extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 4; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.E, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.E, [])}) |
+ }); |
+ mega_load_test.F = class F extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 5; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.F, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.F, [])}) |
+ }); |
+ mega_load_test.G = class G extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 6; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.G, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.G, [])}) |
+ }); |
+ mega_load_test.H = class H extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 7; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.H, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.H, [])}) |
+ }); |
+ mega_load_test.I = class I extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 8; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.I, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.I, [])}) |
+ }); |
+ mega_load_test.J = class J extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 9; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.J, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.J, [])}) |
+ }); |
+ mega_load_test.K = class K extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 10; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.K, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.K, [])}) |
+ }); |
+ mega_load_test.L = class L extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 11; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.L, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.L, [])}) |
+ }); |
+ mega_load_test.M = class M extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 12; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.M, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.M, [])}) |
+ }); |
+ mega_load_test.N = class N extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 13; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.N, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.N, [])}) |
+ }); |
+ mega_load_test.O = class O extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 14; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.O, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.O, [])}) |
+ }); |
+ mega_load_test.P = class P extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 15; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.P, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.P, [])}) |
+ }); |
+ mega_load_test.Q = class Q extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 16; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.Q, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.Q, [])}) |
+ }); |
+ mega_load_test.R = class R extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 17; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.R, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.R, [])}) |
+ }); |
+ mega_load_test.S = class S extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 18; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.S, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.S, [])}) |
+ }); |
+ mega_load_test.T = class T extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 19; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.T, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.T, [])}) |
+ }); |
+ mega_load_test.U = class U extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 20; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.U, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.U, [])}) |
+ }); |
+ mega_load_test.V = class V extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ this.f = 21; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.V, { |
+ constructors: () => ({new: dart.definiteFunctionType(mega_load_test.V, [])}) |
+ }); |
+ mega_load_test.W = class W extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ } |
+ V() { |
+ this.f = 22; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.W, { |
+ methods: () => ({V: dart.definiteFunctionType(dart.dynamic, [])}) |
+ }); |
+ mega_load_test.X = class X extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ } |
+ V() { |
+ this.f = 21; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.X, { |
+ methods: () => ({V: dart.definiteFunctionType(dart.dynamic, [])}) |
+ }); |
+ mega_load_test.Y = class Y extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ } |
+ V() { |
+ this.f = 24; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.Y, { |
+ methods: () => ({V: dart.definiteFunctionType(dart.dynamic, [])}) |
+ }); |
+ mega_load_test.Z = class Z extends mega_load_test.Base { |
+ new() { |
+ super.new(); |
+ } |
+ V() { |
+ this.f = 21; |
+ } |
+ }; |
+ dart.setSignature(mega_load_test.Z, { |
+ methods: () => ({V: dart.definiteFunctionType(dart.dynamic, [])}) |
+ }); |
+ mega_load_test.allocateObjects = function() { |
+ let list = core.List.new(); |
+ list[dartx.add](new mega_load_test.A()); |
+ list[dartx.add](new mega_load_test.B()); |
+ list[dartx.add](new mega_load_test.C()); |
+ list[dartx.add](new mega_load_test.D()); |
+ list[dartx.add](new mega_load_test.E()); |
+ list[dartx.add](new mega_load_test.F()); |
+ list[dartx.add](new mega_load_test.G()); |
+ list[dartx.add](new mega_load_test.H()); |
+ list[dartx.add](new mega_load_test.I()); |
+ list[dartx.add](new mega_load_test.J()); |
+ list[dartx.add](new mega_load_test.K()); |
+ list[dartx.add](new mega_load_test.L()); |
+ list[dartx.add](new mega_load_test.M()); |
+ list[dartx.add](new mega_load_test.N()); |
+ list[dartx.add](new mega_load_test.O()); |
+ list[dartx.add](new mega_load_test.P()); |
+ list[dartx.add](new mega_load_test.Q()); |
+ list[dartx.add](new mega_load_test.R()); |
+ list[dartx.add](new mega_load_test.S()); |
+ list[dartx.add](new mega_load_test.T()); |
+ list[dartx.add](new mega_load_test.U()); |
+ list[dartx.add](new mega_load_test.V()); |
+ return list; |
+ }; |
+ dart.fn(mega_load_test.allocateObjects, VoidTodynamic()); |
+ mega_load_test.callThemAll = function(list) { |
+ for (let i = 0; i < dart.notNull(core.num._check(dart.dload(list, 'length'))); i++) { |
+ expect$.Expect.equals(i, dart.dload(dart.dindex(list, i), 'f')); |
+ } |
+ }; |
+ dart.fn(mega_load_test.callThemAll, dynamicTodynamic()); |
+ mega_load_test.main = function() { |
+ let list = mega_load_test.allocateObjects(); |
+ for (let i = 0; i < 20; i++) { |
+ mega_load_test.callThemAll(list); |
+ } |
+ }; |
+ dart.fn(mega_load_test.main, VoidTodynamic()); |
+ // Exports: |
+ exports.mega_load_test = mega_load_test; |
+}); |