Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Side by Side Diff: src/objects-inl.h

Issue 1748923003: [proxies] use [[GetPrototypeOf]] trap in for-in (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: do not create a HandleScope when passing LookuptIterator* Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698