| 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 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 LanguageMode language_mode = SLOPPY); | 1298 LanguageMode language_mode = SLOPPY); |
| 1299 | 1299 |
| 1300 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( | 1300 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( |
| 1301 Isolate* isolate, Handle<Object> object, uint32_t index, | 1301 Isolate* isolate, Handle<Object> object, uint32_t index, |
| 1302 Handle<Object> value, LanguageMode language_mode); | 1302 Handle<Object> value, LanguageMode language_mode); |
| 1303 | 1303 |
| 1304 // Get the first non-hidden prototype. | 1304 // Get the first non-hidden prototype. |
| 1305 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, | 1305 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, |
| 1306 Handle<Object> receiver); | 1306 Handle<Object> receiver); |
| 1307 | 1307 |
| 1308 bool HasInPrototypeChain(Isolate* isolate, Object* object); | 1308 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain(Isolate* isolate, |
| 1309 Handle<Object> object, |
| 1310 Handle<Object> proto); |
| 1309 | 1311 |
| 1310 // Returns the permanent hash code associated with this object. May return | 1312 // Returns the permanent hash code associated with this object. May return |
| 1311 // undefined if not yet created. | 1313 // undefined if not yet created. |
| 1312 Object* GetHash(); | 1314 Object* GetHash(); |
| 1313 | 1315 |
| 1314 // Returns undefined for JSObjects, but returns the hash code for simple | 1316 // Returns undefined for JSObjects, but returns the hash code for simple |
| 1315 // objects. This avoids a double lookup in the cases where we know we will | 1317 // objects. This avoids a double lookup in the cases where we know we will |
| 1316 // add the hash to the JSObject if it does not already exist. | 1318 // add the hash to the JSObject if it does not already exist. |
| 1317 Object* GetSimpleHash(); | 1319 Object* GetSimpleHash(); |
| 1318 | 1320 |
| (...skipping 9397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10716 } | 10718 } |
| 10717 return value; | 10719 return value; |
| 10718 } | 10720 } |
| 10719 }; | 10721 }; |
| 10720 | 10722 |
| 10721 | 10723 |
| 10722 } // NOLINT, false-positive due to second-order macros. | 10724 } // NOLINT, false-positive due to second-order macros. |
| 10723 } // NOLINT, false-positive due to second-order macros. | 10725 } // NOLINT, false-positive due to second-order macros. |
| 10724 | 10726 |
| 10725 #endif // V8_OBJECTS_H_ | 10727 #endif // V8_OBJECTS_H_ |
| OLD | NEW |