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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 bool IsConfigurable() const { return property_details().IsConfigurable(); } | 131 bool IsConfigurable() const { return property_details().IsConfigurable(); } |
132 bool IsReadOnly() const { return property_details().IsReadOnly(); } | 132 bool IsReadOnly() const { return property_details().IsReadOnly(); } |
133 Representation representation() const { | 133 Representation representation() const { |
134 return property_details().representation(); | 134 return property_details().representation(); |
135 } | 135 } |
136 FieldIndex GetFieldIndex() const; | 136 FieldIndex GetFieldIndex() const; |
137 Handle<HeapType> GetFieldType() const; | 137 Handle<HeapType> GetFieldType() const; |
138 int GetAccessorIndex() const; | 138 int GetAccessorIndex() const; |
139 int GetConstantIndex() const; | 139 int GetConstantIndex() const; |
140 Handle<PropertyCell> GetPropertyCell() const; | 140 Handle<PropertyCell> GetPropertyCell() const; |
141 Handle<PropertyCell> GetTransitionPropertyCell() const { | |
142 DCHECK_EQ(TRANSITION, state_); | |
143 return Handle<PropertyCell>::cast(transition_); | |
144 } | |
145 Handle<Object> GetAccessors() const; | 141 Handle<Object> GetAccessors() const; |
146 Handle<Object> GetDataValue() const; | 142 Handle<Object> GetDataValue() const; |
147 // Usually returns the value that was passed in, but may perform | 143 // Usually returns the value that was passed in, but may perform |
148 // non-observable modifications on it, such as internalize strings. | 144 // non-observable modifications on it, such as internalize strings. |
149 Handle<Object> WriteDataValue(Handle<Object> value); | 145 Handle<Object> WriteDataValue(Handle<Object> value); |
150 void InternalizeName(); | 146 void InternalizeName(); |
151 | 147 |
152 private: | 148 private: |
153 enum class InterceptorState { | 149 enum class InterceptorState { |
154 kUninitialized, | 150 kUninitialized, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 Handle<JSReceiver> holder_; | 210 Handle<JSReceiver> holder_; |
215 Handle<Map> holder_map_; | 211 Handle<Map> holder_map_; |
216 const Handle<JSReceiver> initial_holder_; | 212 const Handle<JSReceiver> initial_holder_; |
217 int number_; | 213 int number_; |
218 }; | 214 }; |
219 | 215 |
220 | 216 |
221 } } // namespace v8::internal | 217 } } // namespace v8::internal |
222 | 218 |
223 #endif // V8_LOOKUP_H_ | 219 #endif // V8_LOOKUP_H_ |
OLD | NEW |