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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 7053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7064 return !properties()->IsDictionary(); | 7064 return !properties()->IsDictionary(); |
7065 } | 7065 } |
7066 | 7066 |
7067 | 7067 |
7068 NameDictionary* JSReceiver::property_dictionary() { | 7068 NameDictionary* JSReceiver::property_dictionary() { |
7069 DCHECK(!HasFastProperties()); | 7069 DCHECK(!HasFastProperties()); |
7070 DCHECK(!IsJSGlobalObject()); | 7070 DCHECK(!IsJSGlobalObject()); |
7071 return NameDictionary::cast(properties()); | 7071 return NameDictionary::cast(properties()); |
7072 } | 7072 } |
7073 | 7073 |
7074 | |
7075 Maybe<bool> JSReceiver::HasProperty(Handle<JSReceiver> object, | 7074 Maybe<bool> JSReceiver::HasProperty(Handle<JSReceiver> object, |
7076 Handle<Name> name) { | 7075 Handle<Name> name) { |
7077 LookupIterator it = LookupIterator::PropertyOrElement(object->GetIsolate(), | 7076 LookupIterator it = LookupIterator::PropertyOrElement(object->GetIsolate(), |
7078 object, name, object); | 7077 object, name, object); |
7079 return HasProperty(&it); | 7078 return HasProperty(&it); |
7080 } | 7079 } |
7081 | 7080 |
7082 | 7081 |
7083 Maybe<bool> JSReceiver::HasOwnProperty(Handle<JSReceiver> object, | 7082 Maybe<bool> JSReceiver::HasOwnProperty(Handle<JSReceiver> object, |
7084 Handle<Name> name) { | 7083 Handle<Name> name) { |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7789 #undef WRITE_INT64_FIELD | 7788 #undef WRITE_INT64_FIELD |
7790 #undef READ_BYTE_FIELD | 7789 #undef READ_BYTE_FIELD |
7791 #undef WRITE_BYTE_FIELD | 7790 #undef WRITE_BYTE_FIELD |
7792 #undef NOBARRIER_READ_BYTE_FIELD | 7791 #undef NOBARRIER_READ_BYTE_FIELD |
7793 #undef NOBARRIER_WRITE_BYTE_FIELD | 7792 #undef NOBARRIER_WRITE_BYTE_FIELD |
7794 | 7793 |
7795 } // namespace internal | 7794 } // namespace internal |
7796 } // namespace v8 | 7795 } // namespace v8 |
7797 | 7796 |
7798 #endif // V8_OBJECTS_INL_H_ | 7797 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |