OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 (function(global, utils, extrasUtils) { | 5 (function(global, utils, extrasUtils) { |
6 | 6 |
7 "use strict"; | 7 "use strict"; |
8 | 8 |
9 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 %CheckIsBootstrapping(); | 164 %CheckIsBootstrapping(); |
165 | 165 |
166 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 166 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
167 imports(exports_container); | 167 imports(exports_container); |
168 } | 168 } |
169 | 169 |
170 // Whitelist of exports from normal natives to experimental natives and debug. | 170 // Whitelist of exports from normal natives to experimental natives and debug. |
171 var expose_list = [ | 171 var expose_list = [ |
172 "ArrayToString", | 172 "ArrayToString", |
173 "ErrorToString", | 173 "ErrorToString", |
174 "FunctionSourceString", | |
175 "GetIterator", | 174 "GetIterator", |
176 "GetMethod", | 175 "GetMethod", |
177 "InnerArrayEvery", | 176 "InnerArrayEvery", |
178 "InnerArrayFilter", | 177 "InnerArrayFilter", |
179 "InnerArrayForEach", | 178 "InnerArrayForEach", |
180 "InnerArrayIndexOf", | 179 "InnerArrayIndexOf", |
181 "InnerArrayJoin", | 180 "InnerArrayJoin", |
182 "InnerArrayLastIndexOf", | 181 "InnerArrayLastIndexOf", |
183 "InnerArrayMap", | 182 "InnerArrayMap", |
184 "InnerArrayReduce", | 183 "InnerArrayReduce", |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 343 |
345 extrasUtils.uncurryThis = function uncurryThis(func) { | 344 extrasUtils.uncurryThis = function uncurryThis(func) { |
346 return function(thisArg) { | 345 return function(thisArg) { |
347 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); | 346 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); |
348 }; | 347 }; |
349 }; | 348 }; |
350 | 349 |
351 %ToFastProperties(extrasUtils); | 350 %ToFastProperties(extrasUtils); |
352 | 351 |
353 }) | 352 }) |
OLD | NEW |