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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 %CheckIsBootstrapping(); | 238 %CheckIsBootstrapping(); |
239 %ExportExperimentalFromRuntime(exports_container); | 239 %ExportExperimentalFromRuntime(exports_container); |
240 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 240 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
241 imports(exports_container); | 241 imports(exports_container); |
242 } | 242 } |
243 for ( ; !IS_UNDEFINED(imports_from_experimental); | 243 for ( ; !IS_UNDEFINED(imports_from_experimental); |
244 imports_from_experimental = imports_from_experimental.next) { | 244 imports_from_experimental = imports_from_experimental.next) { |
245 imports_from_experimental(exports_container); | 245 imports_from_experimental(exports_container); |
246 } | 246 } |
247 | 247 |
| 248 utils.InitializeRNG(); |
| 249 utils.InitializeRNG = UNDEFINED; |
| 250 |
248 utils.Export = UNDEFINED; | 251 utils.Export = UNDEFINED; |
249 utils.PostDebug = UNDEFINED; | 252 utils.PostDebug = UNDEFINED; |
250 utils.PostExperimentals = UNDEFINED; | 253 utils.PostExperimentals = UNDEFINED; |
251 utils.InitializeBuiltinTypedArrays = UNDEFINED; | 254 utils.InitializeBuiltinTypedArrays = UNDEFINED; |
252 utils.SetupTypedArray = UNDEFINED; | 255 utils.SetupTypedArray = UNDEFINED; |
253 typed_array_setup = UNDEFINED; | 256 typed_array_setup = UNDEFINED; |
254 } | 257 } |
255 | 258 |
256 | 259 |
257 function PostDebug(utils) { | 260 function PostDebug(utils) { |
258 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { | 261 for ( ; !IS_UNDEFINED(imports); imports = imports.next) { |
259 imports(exports_container); | 262 imports(exports_container); |
260 } | 263 } |
261 | 264 |
| 265 utils.InitializeRNG(); |
| 266 utils.InitializeRNG = UNDEFINED; |
| 267 |
262 exports_container = UNDEFINED; | 268 exports_container = UNDEFINED; |
263 | 269 |
264 utils.Export = UNDEFINED; | 270 utils.Export = UNDEFINED; |
265 utils.Import = UNDEFINED; | 271 utils.Import = UNDEFINED; |
266 utils.ImportNow = UNDEFINED; | 272 utils.ImportNow = UNDEFINED; |
267 utils.PostDebug = UNDEFINED; | 273 utils.PostDebug = UNDEFINED; |
268 utils.PostExperimentals = UNDEFINED; | 274 utils.PostExperimentals = UNDEFINED; |
269 utils.InitializeBuiltinTypedArrays = UNDEFINED; | 275 utils.InitializeBuiltinTypedArrays = UNDEFINED; |
270 utils.SetupTypedArray = UNDEFINED; | 276 utils.SetupTypedArray = UNDEFINED; |
271 typed_array_setup = UNDEFINED; | 277 typed_array_setup = UNDEFINED; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 | 348 |
343 extrasUtils.uncurryThis = function uncurryThis(func) { | 349 extrasUtils.uncurryThis = function uncurryThis(func) { |
344 return function(thisArg) { | 350 return function(thisArg) { |
345 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); | 351 return %Apply(func, thisArg, arguments, 1, arguments.length - 1); |
346 }; | 352 }; |
347 }; | 353 }; |
348 | 354 |
349 %ToFastProperties(extrasUtils); | 355 %ToFastProperties(extrasUtils); |
350 | 356 |
351 }) | 357 }) |
OLD | NEW |