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 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes( | 1633 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes( |
1634 LookupIterator* it); | 1634 LookupIterator* it); |
1635 MUST_USE_RESULT static Maybe<PropertyAttributes> GetOwnPropertyAttributes( | 1635 MUST_USE_RESULT static Maybe<PropertyAttributes> GetOwnPropertyAttributes( |
1636 Handle<JSReceiver> object, Handle<Name> name); | 1636 Handle<JSReceiver> object, Handle<Name> name); |
1637 | 1637 |
1638 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetElementAttribute( | 1638 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetElementAttribute( |
1639 Handle<JSReceiver> object, uint32_t index); | 1639 Handle<JSReceiver> object, uint32_t index); |
1640 MUST_USE_RESULT static inline Maybe<PropertyAttributes> | 1640 MUST_USE_RESULT static inline Maybe<PropertyAttributes> |
1641 GetOwnElementAttribute(Handle<JSReceiver> object, uint32_t index); | 1641 GetOwnElementAttribute(Handle<JSReceiver> object, uint32_t index); |
1642 | 1642 |
1643 // Return the constructor function (may be Heap::null_value()). | |
1644 inline Object* GetConstructor(); | |
1645 | |
1646 // Retrieves a permanent object identity hash code. The undefined value might | 1643 // Retrieves a permanent object identity hash code. The undefined value might |
1647 // be returned in case no hash was created yet. | 1644 // be returned in case no hash was created yet. |
1648 inline Object* GetIdentityHash(); | 1645 inline Object* GetIdentityHash(); |
1649 | 1646 |
1650 // Retrieves a permanent object identity hash code. May create and store a | 1647 // Retrieves a permanent object identity hash code. May create and store a |
1651 // hash code if needed and none exists. | 1648 // hash code if needed and none exists. |
1652 inline static Handle<Smi> GetOrCreateIdentityHash( | 1649 inline static Handle<Smi> GetOrCreateIdentityHash( |
1653 Handle<JSReceiver> object); | 1650 Handle<JSReceiver> object); |
1654 | 1651 |
1655 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; | 1652 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; |
(...skipping 9259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10915 } else { | 10912 } else { |
10916 value &= ~(1 << bit_position); | 10913 value &= ~(1 << bit_position); |
10917 } | 10914 } |
10918 return value; | 10915 return value; |
10919 } | 10916 } |
10920 }; | 10917 }; |
10921 | 10918 |
10922 } } // namespace v8::internal | 10919 } } // namespace v8::internal |
10923 | 10920 |
10924 #endif // V8_OBJECTS_H_ | 10921 #endif // V8_OBJECTS_H_ |
OLD | NEW |