| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 template <class T> | 93 template <class T> |
| 94 Handle<T> GetHolder() const { | 94 Handle<T> GetHolder() const { |
| 95 DCHECK(IsFound()); | 95 DCHECK(IsFound()); |
| 96 return Handle<T>::cast(holder_); | 96 return Handle<T>::cast(holder_); |
| 97 } | 97 } |
| 98 Handle<JSReceiver> GetRoot() const; | 98 Handle<JSReceiver> GetRoot() const; |
| 99 bool HolderIsReceiverOrHiddenPrototype() const; | 99 bool HolderIsReceiverOrHiddenPrototype() const; |
| 100 | 100 |
| 101 /* ACCESS_CHECK */ | 101 /* ACCESS_CHECK */ |
| 102 bool HasAccess(v8::AccessType access_type) const; | 102 bool HasAccess() const; |
| 103 | 103 |
| 104 /* PROPERTY */ | 104 /* PROPERTY */ |
| 105 void PrepareForDataProperty(Handle<Object> value); | 105 void PrepareForDataProperty(Handle<Object> value); |
| 106 void PrepareTransitionToDataProperty(Handle<Object> value, | 106 void PrepareTransitionToDataProperty(Handle<Object> value, |
| 107 PropertyAttributes attributes, | 107 PropertyAttributes attributes, |
| 108 Object::StoreFromKeyed store_mode); | 108 Object::StoreFromKeyed store_mode); |
| 109 bool IsCacheableTransition() { | 109 bool IsCacheableTransition() { |
| 110 if (state_ != TRANSITION) return false; | 110 if (state_ != TRANSITION) return false; |
| 111 return transition_->IsPropertyCell() || | 111 return transition_->IsPropertyCell() || |
| 112 transition_map()->GetBackPointer()->IsMap(); | 112 transition_map()->GetBackPointer()->IsMap(); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 Handle<Object> receiver_; | 198 Handle<Object> receiver_; |
| 199 Handle<JSReceiver> holder_; | 199 Handle<JSReceiver> holder_; |
| 200 | 200 |
| 201 int number_; | 201 int number_; |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 | 204 |
| 205 } } // namespace v8::internal | 205 } } // namespace v8::internal |
| 206 | 206 |
| 207 #endif // V8_LOOKUP_H_ | 207 #endif // V8_LOOKUP_H_ |
| OLD | NEW |