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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 | 1505 |
1506 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( | 1506 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( |
1507 Isolate* isolate, | 1507 Isolate* isolate, |
1508 Handle<Object> object, | 1508 Handle<Object> object, |
1509 Handle<Object> receiver, | 1509 Handle<Object> receiver, |
1510 uint32_t index); | 1510 uint32_t index); |
1511 | 1511 |
1512 // Return the object's prototype (might be Heap::null_value()). | 1512 // Return the object's prototype (might be Heap::null_value()). |
1513 Object* GetPrototype(Isolate* isolate); | 1513 Object* GetPrototype(Isolate* isolate); |
1514 static Handle<Object> GetPrototype(Isolate* isolate, Handle<Object> object); | 1514 static Handle<Object> GetPrototype(Isolate* isolate, Handle<Object> object); |
1515 Map* GetMarkerMap(Isolate* isolate); | |
1516 | 1515 |
1517 // Returns the permanent hash code associated with this object. May return | 1516 // Returns the permanent hash code associated with this object. May return |
1518 // undefined if not yet created. | 1517 // undefined if not yet created. |
1519 Object* GetHash(); | 1518 Object* GetHash(); |
1520 | 1519 |
1521 // Returns the permanent hash code associated with this object depending on | 1520 // Returns the permanent hash code associated with this object depending on |
1522 // the actual object type. May create and store a hash code if needed and none | 1521 // the actual object type. May create and store a hash code if needed and none |
1523 // exists. | 1522 // exists. |
1524 static Handle<Smi> GetOrCreateHash(Isolate* isolate, Handle<Object> object); | 1523 static Handle<Smi> GetOrCreateHash(Isolate* isolate, Handle<Object> object); |
1525 | 1524 |
(...skipping 9718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11244 } else { | 11243 } else { |
11245 value &= ~(1 << bit_position); | 11244 value &= ~(1 << bit_position); |
11246 } | 11245 } |
11247 return value; | 11246 return value; |
11248 } | 11247 } |
11249 }; | 11248 }; |
11250 | 11249 |
11251 } } // namespace v8::internal | 11250 } } // namespace v8::internal |
11252 | 11251 |
11253 #endif // V8_OBJECTS_H_ | 11252 #endif // V8_OBJECTS_H_ |
OLD | NEW |