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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 183 } |
184 } | 184 } |
185 return Handle<JSObject>::cast(receiver_); | 185 return Handle<JSObject>::cast(receiver_); |
186 } | 186 } |
187 | 187 |
188 bool is_dictionary_holder() const { return !holder_->HasFastProperties(); } | 188 bool is_dictionary_holder() const { return !holder_->HasFastProperties(); } |
189 Handle<Map> transition_map() const { | 189 Handle<Map> transition_map() const { |
190 DCHECK_EQ(TRANSITION, state_); | 190 DCHECK_EQ(TRANSITION, state_); |
191 return Handle<Map>::cast(transition_); | 191 return Handle<Map>::cast(transition_); |
192 } | 192 } |
| 193 Handle<PropertyCell> transition_cell() const { |
| 194 DCHECK_EQ(TRANSITION, state_); |
| 195 return Handle<PropertyCell>::cast(transition_); |
| 196 } |
193 template <class T> | 197 template <class T> |
194 Handle<T> GetHolder() const { | 198 Handle<T> GetHolder() const { |
195 DCHECK(IsFound()); | 199 DCHECK(IsFound()); |
196 return Handle<T>::cast(holder_); | 200 return Handle<T>::cast(holder_); |
197 } | 201 } |
198 | 202 |
199 bool HolderIsReceiverOrHiddenPrototype() const; | 203 bool HolderIsReceiverOrHiddenPrototype() const; |
200 | 204 |
201 bool check_prototype_chain() const { | 205 bool check_prototype_chain() const { |
202 return (configuration_ & kPrototypeChain) != 0; | 206 return (configuration_ & kPrototypeChain) != 0; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 const Handle<JSReceiver> initial_holder_; | 366 const Handle<JSReceiver> initial_holder_; |
363 const uint32_t index_; | 367 const uint32_t index_; |
364 uint32_t number_; | 368 uint32_t number_; |
365 }; | 369 }; |
366 | 370 |
367 | 371 |
368 } // namespace internal | 372 } // namespace internal |
369 } // namespace v8 | 373 } // namespace v8 |
370 | 374 |
371 #endif // V8_LOOKUP_H_ | 375 #endif // V8_LOOKUP_H_ |
OLD | NEW |