| 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 GlobalObject = global.Object; | 12 var GlobalObject = global.Object; |
| 13 var iteratorSymbol = utils.ImportNow("iterator_symbol"); | 13 var iteratorSymbol = utils.ImportNow("iterator_symbol"); |
| 14 var NaN = %GetRootNaN(); | |
| 15 var ObjectToString = utils.ImportNow("object_to_string"); | 14 var ObjectToString = utils.ImportNow("object_to_string"); |
| 16 | 15 |
| 17 // ---------------------------------------------------------------------------- | 16 // ---------------------------------------------------------------------------- |
| 18 | 17 |
| 19 | 18 |
| 20 // Set up global object. | 19 // Set up global object. |
| 21 var attributes = DONT_ENUM | DONT_DELETE | READ_ONLY; | 20 var attributes = DONT_ENUM | DONT_DELETE | READ_ONLY; |
| 22 | 21 |
| 23 | 22 |
| 24 // ---------------------------------------------------------------------------- | 23 // ---------------------------------------------------------------------------- |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 to.GetIterator = GetIterator; | 110 to.GetIterator = GetIterator; |
| 112 to.GetMethod = GetMethod; | 111 to.GetMethod = GetMethod; |
| 113 to.ObjectHasOwnProperty = GlobalObject.prototype.hasOwnProperty; | 112 to.ObjectHasOwnProperty = GlobalObject.prototype.hasOwnProperty; |
| 114 }); | 113 }); |
| 115 | 114 |
| 116 %InstallToContext([ | 115 %InstallToContext([ |
| 117 "object_value_of", ObjectValueOf, | 116 "object_value_of", ObjectValueOf, |
| 118 ]); | 117 ]); |
| 119 | 118 |
| 120 }) | 119 }) |
| OLD | NEW |