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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 Handle<Object> value); | 1279 Handle<Object> value); |
1280 | 1280 |
1281 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( | 1281 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( |
1282 Isolate* isolate, Handle<Object> object, uint32_t index, | 1282 Isolate* isolate, Handle<Object> object, uint32_t index, |
1283 LanguageMode language_mode = SLOPPY); | 1283 LanguageMode language_mode = SLOPPY); |
1284 | 1284 |
1285 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( | 1285 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( |
1286 Isolate* isolate, Handle<Object> object, uint32_t index, | 1286 Isolate* isolate, Handle<Object> object, uint32_t index, |
1287 Handle<Object> value, LanguageMode language_mode); | 1287 Handle<Object> value, LanguageMode language_mode); |
1288 | 1288 |
1289 static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( | 1289 // Get the first non-hidden prototype. |
1290 Isolate* isolate, Handle<Object> receiver); | 1290 static inline Handle<Object> GetPrototype(Isolate* isolate, |
| 1291 Handle<Object> receiver); |
| 1292 static inline Handle<Object> GetPrototypeWithAccess(Isolate* isolate, |
| 1293 Handle<Object> receiver); |
1291 | 1294 |
1292 bool HasInPrototypeChain(Isolate* isolate, Object* object); | 1295 bool HasInPrototypeChain(Isolate* isolate, Object* object); |
1293 | 1296 |
1294 // Returns the permanent hash code associated with this object. May return | 1297 // Returns the permanent hash code associated with this object. May return |
1295 // undefined if not yet created. | 1298 // undefined if not yet created. |
1296 Object* GetHash(); | 1299 Object* GetHash(); |
1297 | 1300 |
1298 // Returns undefined for JSObjects, but returns the hash code for simple | 1301 // Returns undefined for JSObjects, but returns the hash code for simple |
1299 // objects. This avoids a double lookup in the cases where we know we will | 1302 // objects. This avoids a double lookup in the cases where we know we will |
1300 // add the hash to the JSObject if it does not already exist. | 1303 // add the hash to the JSObject if it does not already exist. |
(...skipping 9379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10680 Handle<FixedArray> keys_; | 10683 Handle<FixedArray> keys_; |
10681 Handle<OrderedHashSet> set_; | 10684 Handle<OrderedHashSet> set_; |
10682 int length_; | 10685 int length_; |
10683 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10686 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
10684 }; | 10687 }; |
10685 | 10688 |
10686 } // NOLINT, false-positive due to second-order macros. | 10689 } // NOLINT, false-positive due to second-order macros. |
10687 } // NOLINT, false-positive due to second-order macros. | 10690 } // NOLINT, false-positive due to second-order macros. |
10688 | 10691 |
10689 #endif // V8_OBJECTS_H_ | 10692 #endif // V8_OBJECTS_H_ |
OLD | NEW |