OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_LOOKUP_H_ | 5 #ifndef V8_LOOKUP_H_ |
6 #define V8_LOOKUP_H_ | 6 #define V8_LOOKUP_H_ |
7 | 7 |
8 #include "src/factory.h" | 8 #include "src/factory.h" |
9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 return transition_map_; | 111 return transition_map_; |
112 } | 112 } |
113 template <class T> | 113 template <class T> |
114 Handle<T> GetHolder() const { | 114 Handle<T> GetHolder() const { |
115 DCHECK(IsFound()); | 115 DCHECK(IsFound()); |
116 return Handle<T>::cast(maybe_holder_.ToHandleChecked()); | 116 return Handle<T>::cast(maybe_holder_.ToHandleChecked()); |
117 } | 117 } |
118 Handle<JSReceiver> GetRoot() const; | 118 Handle<JSReceiver> GetRoot() const; |
119 bool HolderIsReceiverOrHiddenPrototype() const; | 119 bool HolderIsReceiverOrHiddenPrototype() const; |
120 | 120 |
| 121 void LookupForRead(); |
| 122 |
121 /* ACCESS_CHECK */ | 123 /* ACCESS_CHECK */ |
122 bool HasAccess(v8::AccessType access_type) const; | 124 bool HasAccess(v8::AccessType access_type) const; |
123 | 125 |
124 /* PROPERTY */ | 126 /* PROPERTY */ |
125 // HasProperty needs to be called before any of the other PROPERTY methods | 127 // HasProperty needs to be called before any of the other PROPERTY methods |
126 // below can be used. It ensures that we are able to provide a definite | 128 // below can be used. It ensures that we are able to provide a definite |
127 // answer, and loads extra information about the property. | 129 // answer, and loads extra information about the property. |
128 bool HasProperty(); | 130 bool HasProperty(); |
129 void PrepareForDataProperty(Handle<Object> value); | 131 void PrepareForDataProperty(Handle<Object> value); |
130 void PrepareTransitionToDataProperty(Handle<Object> value, | 132 void PrepareTransitionToDataProperty(Handle<Object> value, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 MaybeHandle<Object> maybe_receiver_; | 238 MaybeHandle<Object> maybe_receiver_; |
237 MaybeHandle<JSReceiver> maybe_holder_; | 239 MaybeHandle<JSReceiver> maybe_holder_; |
238 | 240 |
239 int number_; | 241 int number_; |
240 }; | 242 }; |
241 | 243 |
242 | 244 |
243 } } // namespace v8::internal | 245 } } // namespace v8::internal |
244 | 246 |
245 #endif // V8_LOOKUP_H_ | 247 #endif // V8_LOOKUP_H_ |
OLD | NEW |