OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Helpers for lazy static initialization. | 6 * Helpers for lazy static initialization. |
7 */ | 7 */ |
8 var static$uninitialized = {}; | 8 var static$uninitialized = {}; |
9 var static$initializing = {}; | 9 var static$initializing = {}; |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 return fn.call(thisObj, scope1, scope2, scope3); | 108 return fn.call(thisObj, scope1, scope2, scope3); |
109 } | 109 } |
110 } | 110 } |
111 function $bind3_1(fn, thisObj, scope1, scope2, scope3) { | 111 function $bind3_1(fn, thisObj, scope1, scope2, scope3) { |
112 return function(arg) { | 112 return function(arg) { |
113 return fn.call(thisObj, scope1, scope2, scope3, arg); | 113 return fn.call(thisObj, scope1, scope2, scope3, arg); |
114 } | 114 } |
115 } | 115 } |
116 function $bind3_2(fn, thisObj, scope1, scope2, scope3) { | 116 function $bind3_2(fn, thisObj, scope1, scope2, scope3) { |
117 return function(arg1, arg2) { | 117 return function(arg1, arg2) { |
118 return fn.call(thisObj, scope1, scope2, arg1, arg2); | 118 return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2); |
119 } | 119 } |
120 } | 120 } |
121 function $bind3_3(fn, thisObj, scope1, scope2, scope3) { | 121 function $bind3_3(fn, thisObj, scope1, scope2, scope3) { |
122 return function(arg1, arg2, arg3) { | 122 return function(arg1, arg2, arg3) { |
123 return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2, arg3); | 123 return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2, arg3); |
124 } | 124 } |
125 } | 125 } |
126 function $bind3_4(fn, thisObj, scope1, scope2, scope3) { | 126 function $bind3_4(fn, thisObj, scope1, scope2, scope3) { |
127 return function(arg1, arg2, arg3, arg4) { | 127 return function(arg1, arg2, arg3, arg4) { |
128 return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2, arg3, arg4); | 128 return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2, arg3, arg4); |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 return match; | 463 return match; |
464 } | 464 } |
465 o.$dartConstId = id; | 465 o.$dartConstId = id; |
466 $consts[key] = o; | 466 $consts[key] = o; |
467 return o; | 467 return o; |
468 } | 468 } |
469 | 469 |
470 function $Dart$MapLiteralFactory() { | 470 function $Dart$MapLiteralFactory() { |
471 return native__CoreJsUtil__newMapLiteral(); | 471 return native__CoreJsUtil__newMapLiteral(); |
472 } | 472 } |
OLD | NEW |