OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/gc_test', null, /* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__gc_test(exports, dart_sdk) { |
| 4 'use strict'; |
| 5 const core = dart_sdk.core; |
| 6 const dart = dart_sdk.dart; |
| 7 const dartx = dart_sdk.dartx; |
| 8 const gc_test = Object.create(null); |
| 9 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 11 gc_test.main = function() { |
| 12 let div = null; |
| 13 for (let i = 0; i < 200; ++i) { |
| 14 let l = core.List.new(1000000); |
| 15 let m = 2; |
| 16 div = dart.fn(_ => { |
| 17 let b = l; |
| 18 }, dynamicTodynamic()); |
| 19 let lSmall = core.List.new(3); |
| 20 lSmall[dartx.set](0, l); |
| 21 l[dartx.set](0, lSmall); |
| 22 } |
| 23 }; |
| 24 dart.fn(gc_test.main, VoidTodynamic()); |
| 25 // Exports: |
| 26 exports.gc_test = gc_test; |
| 27 }); |
OLD | NEW |