| 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 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 var name = TO_NAME(value); | 141 var name = TO_NAME(value); |
| 142 var object = TO_OBJECT(this); | 142 var object = TO_OBJECT(this); |
| 143 return %HasOwnProperty(object, name); | 143 return %HasOwnProperty(object, name); |
| 144 } | 144 } |
| 145 | 145 |
| 146 | 146 |
| 147 // ES6 19.1.3.3 Object.prototype.isPrototypeOf(V) | 147 // ES6 19.1.3.3 Object.prototype.isPrototypeOf(V) |
| 148 function ObjectIsPrototypeOf(V) { | 148 function ObjectIsPrototypeOf(V) { |
| 149 if (!IS_RECEIVER(V)) return false; | 149 if (!IS_RECEIVER(V)) return false; |
| 150 var O = TO_OBJECT(this); | 150 var O = TO_OBJECT(this); |
| 151 return %_HasInPrototypeChain(V, O); | 151 return %HasInPrototypeChain(V, O); |
| 152 } | 152 } |
| 153 | 153 |
| 154 | 154 |
| 155 // ES6 19.1.3.4 | 155 // ES6 19.1.3.4 |
| 156 function ObjectPropertyIsEnumerable(V) { | 156 function ObjectPropertyIsEnumerable(V) { |
| 157 var P = TO_NAME(V); | 157 var P = TO_NAME(V); |
| 158 return %PropertyIsEnumerable(TO_OBJECT(this), P); | 158 return %PropertyIsEnumerable(TO_OBJECT(this), P); |
| 159 } | 159 } |
| 160 | 160 |
| 161 | 161 |
| (...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 to.ObjectDefineProperties = ObjectDefineProperties; | 1181 to.ObjectDefineProperties = ObjectDefineProperties; |
| 1182 to.ObjectDefineProperty = ObjectDefineProperty; | 1182 to.ObjectDefineProperty = ObjectDefineProperty; |
| 1183 to.ObjectHasOwnProperty = ObjectHasOwnProperty; | 1183 to.ObjectHasOwnProperty = ObjectHasOwnProperty; |
| 1184 }); | 1184 }); |
| 1185 | 1185 |
| 1186 %InstallToContext([ | 1186 %InstallToContext([ |
| 1187 "object_value_of", ObjectValueOf, | 1187 "object_value_of", ObjectValueOf, |
| 1188 ]); | 1188 ]); |
| 1189 | 1189 |
| 1190 }) | 1190 }) |
| OLD | NEW |