OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/allocate_large_object_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__allocate_large_object_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const allocate_large_object_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 allocate_large_object_test.A = class A extends core.Object { |
| 13 static foo() { |
| 14 return allocate_large_object_test.A.s; |
| 15 } |
| 16 new(a) { |
| 17 this.a = a; |
| 18 this.d1 = null; |
| 19 this.d2 = null; |
| 20 this.d3 = null; |
| 21 this.d4 = null; |
| 22 this.d5 = null; |
| 23 this.d6 = null; |
| 24 this.d7 = null; |
| 25 this.d8 = null; |
| 26 this.d9 = null; |
| 27 this.d10 = null; |
| 28 this.d11 = null; |
| 29 this.d12 = null; |
| 30 this.d13 = null; |
| 31 this.d14 = null; |
| 32 } |
| 33 value() { |
| 34 return dart.notNull(this.a) + dart.notNull(core.num._check(allocate_large_
object_test.A.foo())); |
| 35 } |
| 36 }; |
| 37 dart.setSignature(allocate_large_object_test.A, { |
| 38 constructors: () => ({new: dart.definiteFunctionType(allocate_large_object_t
est.A, [core.int])}), |
| 39 methods: () => ({value: dart.definiteFunctionType(dart.dynamic, [])}), |
| 40 statics: () => ({foo: dart.definiteFunctionType(dart.dynamic, [])}), |
| 41 names: ['foo'] |
| 42 }); |
| 43 allocate_large_object_test.A.s = null; |
| 44 allocate_large_object_test.AllocateLargeObject = class AllocateLargeObject ext
ends core.Object { |
| 45 static testMain() { |
| 46 let a = new allocate_large_object_test.A(1); |
| 47 allocate_large_object_test.A.s = 4; |
| 48 expect$.Expect.equals(5, a.value()); |
| 49 } |
| 50 }; |
| 51 dart.setSignature(allocate_large_object_test.AllocateLargeObject, { |
| 52 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}), |
| 53 names: ['testMain'] |
| 54 }); |
| 55 allocate_large_object_test.main = function() { |
| 56 allocate_large_object_test.AllocateLargeObject.testMain(); |
| 57 }; |
| 58 dart.fn(allocate_large_object_test.main, VoidTodynamic()); |
| 59 // Exports: |
| 60 exports.allocate_large_object_test = allocate_large_object_test; |
| 61 }); |
OLD | NEW |