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 7065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7076 return !properties()->IsDictionary(); | 7076 return !properties()->IsDictionary(); |
7077 } | 7077 } |
7078 | 7078 |
7079 | 7079 |
7080 NameDictionary* JSReceiver::property_dictionary() { | 7080 NameDictionary* JSReceiver::property_dictionary() { |
7081 DCHECK(!HasFastProperties()); | 7081 DCHECK(!HasFastProperties()); |
7082 DCHECK(!IsJSGlobalObject()); | 7082 DCHECK(!IsJSGlobalObject()); |
7083 return NameDictionary::cast(properties()); | 7083 return NameDictionary::cast(properties()); |
7084 } | 7084 } |
7085 | 7085 |
7086 | |
7087 Maybe<bool> JSReceiver::HasProperty(Handle<JSReceiver> object, | 7086 Maybe<bool> JSReceiver::HasProperty(Handle<JSReceiver> object, |
7088 Handle<Name> name) { | 7087 Handle<Name> name) { |
7089 LookupIterator it = LookupIterator::PropertyOrElement(object->GetIsolate(), | 7088 LookupIterator it = LookupIterator::PropertyOrElement(object->GetIsolate(), |
7090 object, name, object); | 7089 object, name, object); |
7091 return HasProperty(&it); | 7090 return HasProperty(&it); |
7092 } | 7091 } |
7093 | 7092 |
7094 | 7093 |
7095 Maybe<bool> JSReceiver::HasOwnProperty(Handle<JSReceiver> object, | 7094 Maybe<bool> JSReceiver::HasOwnProperty(Handle<JSReceiver> object, |
7096 Handle<Name> name) { | 7095 Handle<Name> name) { |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7801 #undef WRITE_INT64_FIELD | 7800 #undef WRITE_INT64_FIELD |
7802 #undef READ_BYTE_FIELD | 7801 #undef READ_BYTE_FIELD |
7803 #undef WRITE_BYTE_FIELD | 7802 #undef WRITE_BYTE_FIELD |
7804 #undef NOBARRIER_READ_BYTE_FIELD | 7803 #undef NOBARRIER_READ_BYTE_FIELD |
7805 #undef NOBARRIER_WRITE_BYTE_FIELD | 7804 #undef NOBARRIER_WRITE_BYTE_FIELD |
7806 | 7805 |
7807 } // namespace internal | 7806 } // namespace internal |
7808 } // namespace v8 | 7807 } // namespace v8 |
7809 | 7808 |
7810 #endif // V8_OBJECTS_INL_H_ | 7809 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |