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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 Isolate* isolate, Handle<Object> object, uint32_t index, | 1187 Isolate* isolate, Handle<Object> object, uint32_t index, |
1188 LanguageMode language_mode = SLOPPY); | 1188 LanguageMode language_mode = SLOPPY); |
1189 | 1189 |
1190 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( | 1190 MUST_USE_RESULT static inline MaybeHandle<Object> SetElement( |
1191 Isolate* isolate, Handle<Object> object, uint32_t index, | 1191 Isolate* isolate, Handle<Object> object, uint32_t index, |
1192 Handle<Object> value, LanguageMode language_mode); | 1192 Handle<Object> value, LanguageMode language_mode); |
1193 | 1193 |
1194 static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( | 1194 static inline Handle<Object> GetPrototypeSkipHiddenPrototypes( |
1195 Isolate* isolate, Handle<Object> receiver); | 1195 Isolate* isolate, Handle<Object> receiver); |
1196 | 1196 |
| 1197 bool HasInPrototypeChain(Isolate* isolate, Object* object); |
| 1198 |
1197 // Returns the permanent hash code associated with this object. May return | 1199 // Returns the permanent hash code associated with this object. May return |
1198 // undefined if not yet created. | 1200 // undefined if not yet created. |
1199 Object* GetHash(); | 1201 Object* GetHash(); |
1200 | 1202 |
1201 // Returns undefined for JSObjects, but returns the hash code for simple | 1203 // Returns undefined for JSObjects, but returns the hash code for simple |
1202 // objects. This avoids a double lookup in the cases where we know we will | 1204 // objects. This avoids a double lookup in the cases where we know we will |
1203 // add the hash to the JSObject if it does not already exist. | 1205 // add the hash to the JSObject if it does not already exist. |
1204 Object* GetSimpleHash(); | 1206 Object* GetSimpleHash(); |
1205 | 1207 |
1206 // Returns the permanent hash code associated with this object depending on | 1208 // Returns the permanent hash code associated with this object depending on |
(...skipping 9362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10569 } else { | 10571 } else { |
10570 value &= ~(1 << bit_position); | 10572 value &= ~(1 << bit_position); |
10571 } | 10573 } |
10572 return value; | 10574 return value; |
10573 } | 10575 } |
10574 }; | 10576 }; |
10575 | 10577 |
10576 } } // namespace v8::internal | 10578 } } // namespace v8::internal |
10577 | 10579 |
10578 #endif // V8_OBJECTS_H_ | 10580 #endif // V8_OBJECTS_H_ |
OLD | NEW |