| 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 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1498 Isolate* isolate, | 1498 Isolate* isolate, |
| 1499 Handle<Object> object, | 1499 Handle<Object> object, |
| 1500 uint32_t index); | 1500 uint32_t index); |
| 1501 | 1501 |
| 1502 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( | 1502 MUST_USE_RESULT static MaybeHandle<Object> GetElementWithReceiver( |
| 1503 Isolate* isolate, | 1503 Isolate* isolate, |
| 1504 Handle<Object> object, | 1504 Handle<Object> object, |
| 1505 Handle<Object> receiver, | 1505 Handle<Object> receiver, |
| 1506 uint32_t index); | 1506 uint32_t index); |
| 1507 | 1507 |
| 1508 // Return the object's prototype (might be Heap::null_value()). | 1508 // Return the object's prototype (might be Heap::null_value()). Please use a |
| 1509 // PrototypeIterator instead. |
| 1510 // |
| 1511 // TODO(jochen): Make these private. |
| 1509 Object* GetPrototype(Isolate* isolate); | 1512 Object* GetPrototype(Isolate* isolate); |
| 1510 static Handle<Object> GetPrototype(Isolate* isolate, Handle<Object> object); | 1513 static Handle<Object> GetPrototype(Isolate* isolate, Handle<Object> object); |
| 1511 | 1514 |
| 1512 // Returns the permanent hash code associated with this object. May return | 1515 // Returns the permanent hash code associated with this object. May return |
| 1513 // undefined if not yet created. | 1516 // undefined if not yet created. |
| 1514 Object* GetHash(); | 1517 Object* GetHash(); |
| 1515 | 1518 |
| 1516 // Returns the permanent hash code associated with this object depending on | 1519 // Returns the permanent hash code associated with this object depending on |
| 1517 // the actual object type. May create and store a hash code if needed and none | 1520 // the actual object type. May create and store a hash code if needed and none |
| 1518 // exists. | 1521 // exists. |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1961 Handle<JSReceiver> object, | 1964 Handle<JSReceiver> object, |
| 1962 Handle<Name> name); | 1965 Handle<Name> name); |
| 1963 | 1966 |
| 1964 static inline PropertyAttributes GetElementAttribute( | 1967 static inline PropertyAttributes GetElementAttribute( |
| 1965 Handle<JSReceiver> object, | 1968 Handle<JSReceiver> object, |
| 1966 uint32_t index); | 1969 uint32_t index); |
| 1967 static inline PropertyAttributes GetOwnElementAttribute( | 1970 static inline PropertyAttributes GetOwnElementAttribute( |
| 1968 Handle<JSReceiver> object, | 1971 Handle<JSReceiver> object, |
| 1969 uint32_t index); | 1972 uint32_t index); |
| 1970 | 1973 |
| 1971 // Return the object's prototype (might be Heap::null_value()). | 1974 // Return the object's prototype (might be Heap::null_value()). Use a |
| 1975 // PrototypeIterator instead. |
| 1976 // |
| 1977 // TODO(jochen): Make this method private. |
| 1972 inline Object* GetPrototype(); | 1978 inline Object* GetPrototype(); |
| 1973 | 1979 |
| 1974 // Return the constructor function (may be Heap::null_value()). | 1980 // Return the constructor function (may be Heap::null_value()). |
| 1975 inline Object* GetConstructor(); | 1981 inline Object* GetConstructor(); |
| 1976 | 1982 |
| 1977 // Retrieves a permanent object identity hash code. The undefined value might | 1983 // Retrieves a permanent object identity hash code. The undefined value might |
| 1978 // be returned in case no hash was created yet. | 1984 // be returned in case no hash was created yet. |
| 1979 inline Object* GetIdentityHash(); | 1985 inline Object* GetIdentityHash(); |
| 1980 | 1986 |
| 1981 // Retrieves a permanent object identity hash code. May create and store a | 1987 // Retrieves a permanent object identity hash code. May create and store a |
| (...skipping 9162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11144 } else { | 11150 } else { |
| 11145 value &= ~(1 << bit_position); | 11151 value &= ~(1 << bit_position); |
| 11146 } | 11152 } |
| 11147 return value; | 11153 return value; |
| 11148 } | 11154 } |
| 11149 }; | 11155 }; |
| 11150 | 11156 |
| 11151 } } // namespace v8::internal | 11157 } } // namespace v8::internal |
| 11152 | 11158 |
| 11153 #endif // V8_OBJECTS_H_ | 11159 #endif // V8_OBJECTS_H_ |
| OLD | NEW |