OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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) { | 5 (function(global, utils) { |
6 | 6 |
7 %CheckIsBootstrapping(); | 7 %CheckIsBootstrapping(); |
8 | 8 |
9 // ---------------------------------------------------------------------------- | 9 // ---------------------------------------------------------------------------- |
10 // Imports | 10 // Imports |
11 | 11 |
12 var GlobalArray = global.Array; | 12 var GlobalArray = global.Array; |
13 var GlobalNumber = global.Number; | 13 var GlobalNumber = global.Number; |
14 var GlobalObject = global.Object; | 14 var GlobalObject = global.Object; |
15 var InternalArray = utils.InternalArray; | |
16 var iteratorSymbol = utils.ImportNow("iterator_symbol"); | 15 var iteratorSymbol = utils.ImportNow("iterator_symbol"); |
17 var MakeRangeError; | 16 var MakeRangeError; |
18 var MakeSyntaxError; | 17 var MakeSyntaxError; |
19 var MakeTypeError; | 18 var MakeTypeError; |
20 var MathAbs; | 19 var MathAbs; |
21 var NaN = %GetRootNaN(); | 20 var NaN = %GetRootNaN(); |
22 var ObjectToString = utils.ImportNow("object_to_string"); | 21 var ObjectToString = utils.ImportNow("object_to_string"); |
23 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); | 22 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
24 | 23 |
25 utils.Import(function(from) { | 24 utils.Import(function(from) { |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 to.NumberIsNaN = NumberIsNaN; | 454 to.NumberIsNaN = NumberIsNaN; |
456 to.NumberIsInteger = NumberIsInteger; | 455 to.NumberIsInteger = NumberIsInteger; |
457 to.ObjectHasOwnProperty = GlobalObject.prototype.hasOwnProperty; | 456 to.ObjectHasOwnProperty = GlobalObject.prototype.hasOwnProperty; |
458 }); | 457 }); |
459 | 458 |
460 %InstallToContext([ | 459 %InstallToContext([ |
461 "object_value_of", ObjectValueOf, | 460 "object_value_of", ObjectValueOf, |
462 ]); | 461 ]); |
463 | 462 |
464 }) | 463 }) |
OLD | NEW |