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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 utils.Import = UNDEFINED; | 265 utils.Import = UNDEFINED; |
266 utils.ImportNow = UNDEFINED; | 266 utils.ImportNow = UNDEFINED; |
267 utils.PostDebug = UNDEFINED; | 267 utils.PostDebug = UNDEFINED; |
268 utils.PostExperimentals = UNDEFINED; | 268 utils.PostExperimentals = UNDEFINED; |
269 utils.InitializeBuiltinTypedArrays = UNDEFINED; | 269 utils.InitializeBuiltinTypedArrays = UNDEFINED; |
270 utils.SetupTypedArray = UNDEFINED; | 270 utils.SetupTypedArray = UNDEFINED; |
271 typed_array_setup = UNDEFINED; | 271 typed_array_setup = UNDEFINED; |
272 } | 272 } |
273 | 273 |
274 | 274 |
275 function InitializeBuiltinTypedArrays( | 275 function InitializeBuiltinTypedArrays(utils, rng_state, rempio2result) { |
276 utils, rng_state, math_constants, rempio2result) { | |
277 var setup_list = typed_array_setup; | 276 var setup_list = typed_array_setup; |
278 | 277 |
279 for ( ; !IS_UNDEFINED(setup_list); setup_list = setup_list.next) { | 278 for ( ; !IS_UNDEFINED(setup_list); setup_list = setup_list.next) { |
280 setup_list(rng_state, math_constants, rempio2result); | 279 setup_list(rng_state, rempio2result); |
281 } | 280 } |
282 } | 281 } |
283 | 282 |
284 | 283 |
285 // ----------------------------------------------------------------------- | 284 // ----------------------------------------------------------------------- |
286 | 285 |
287 %OptimizeObjectForAddingMultipleProperties(utils, 15); | 286 %OptimizeObjectForAddingMultipleProperties(utils, 15); |
288 | 287 |
289 utils.Import = Import; | 288 utils.Import = Import; |
290 utils.ImportNow = ImportNow; | 289 utils.ImportNow = ImportNow; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 342 |
344 extrasUtils.uncurryThis = function uncurryThis(func) { | 343 extrasUtils.uncurryThis = function uncurryThis(func) { |
345 return function(thisArg) { | 344 return function(thisArg) { |
346 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); | 345 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); |
347 }; | 346 }; |
348 }; | 347 }; |
349 | 348 |
350 %ToFastProperties(extrasUtils); | 349 %ToFastProperties(extrasUtils); |
351 | 350 |
352 }) | 351 }) |
OLD | NEW |