OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/inline_add_constants_to_initial_env_test', null,
/* Imports */[ |
| 2 'dart_sdk' |
| 3 ], function load__inline_add_constants_to_initial_env_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 inline_add_constants_to_initial_env_test = Object.create(null); |
| 9 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons
tFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); |
| 10 let dynamic__Todynamic = () => (dynamic__Todynamic = dart.constFn(dart.definit
eFunctionType(dart.dynamic, [dart.dynamic], [dart.dynamic, dart.dynamic, dart.dy
namic, dart.dynamic])))(); |
| 11 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 inline_add_constants_to_initial_env_test.h = function(x, y) { |
| 14 return dart.equals(x, y); |
| 15 }; |
| 16 dart.fn(inline_add_constants_to_initial_env_test.h, dynamicAnddynamicTodynamic
()); |
| 17 inline_add_constants_to_initial_env_test.g = function(y, x0, x1, x2, x3) { |
| 18 if (x0 === void 0) x0 = 0; |
| 19 if (x1 === void 0) x1 = 1; |
| 20 if (x2 === void 0) x2 = 2; |
| 21 if (x3 === void 0) x3 = 3; |
| 22 return dart.dsend(dart.dsend(dart.dsend(dart.dsend(y, '+', x0), '+', x1), '+
', x2), '+', x3); |
| 23 }; |
| 24 dart.fn(inline_add_constants_to_initial_env_test.g, dynamic__Todynamic()); |
| 25 inline_add_constants_to_initial_env_test.f = function(y) { |
| 26 return inline_add_constants_to_initial_env_test.h(y, inline_add_constants_to
_initial_env_test.g(y)); |
| 27 }; |
| 28 dart.fn(inline_add_constants_to_initial_env_test.f, dynamicTodynamic()); |
| 29 inline_add_constants_to_initial_env_test.main = function() { |
| 30 for (let i = 0; i < 20; i++) |
| 31 inline_add_constants_to_initial_env_test.f(i); |
| 32 }; |
| 33 dart.fn(inline_add_constants_to_initial_env_test.main, VoidTodynamic()); |
| 34 // Exports: |
| 35 exports.inline_add_constants_to_initial_env_test = inline_add_constants_to_ini
tial_env_test; |
| 36 }); |
OLD | NEW |