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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 bool IsReadOnly() const { return property_details().IsReadOnly(); } | 175 bool IsReadOnly() const { return property_details().IsReadOnly(); } |
176 Representation representation() const { | 176 Representation representation() const { |
177 return property_details().representation(); | 177 return property_details().representation(); |
178 } | 178 } |
179 FieldIndex GetFieldIndex() const; | 179 FieldIndex GetFieldIndex() const; |
180 Handle<HeapType> GetFieldType() const; | 180 Handle<HeapType> GetFieldType() const; |
181 int GetAccessorIndex() const; | 181 int GetAccessorIndex() const; |
182 int GetConstantIndex() const; | 182 int GetConstantIndex() const; |
183 Handle<PropertyCell> GetPropertyCell() const; | 183 Handle<PropertyCell> GetPropertyCell() const; |
184 Handle<Object> GetAccessors() const; | 184 Handle<Object> GetAccessors() const; |
| 185 Handle<InterceptorInfo> GetInterceptor() const; |
185 Handle<Object> GetDataValue() const; | 186 Handle<Object> GetDataValue() const; |
186 // Usually returns the value that was passed in, but may perform | 187 // Usually returns the value that was passed in, but may perform |
187 // non-observable modifications on it, such as internalize strings. | 188 // non-observable modifications on it, such as internalize strings. |
188 void WriteDataValue(Handle<Object> value); | 189 void WriteDataValue(Handle<Object> value); |
189 void InternalizeName(); | 190 void InternalizeName(); |
190 | 191 |
191 private: | 192 private: |
192 enum class InterceptorState { | 193 enum class InterceptorState { |
193 kUninitialized, | 194 kUninitialized, |
194 kSkipNonMasking, | 195 kSkipNonMasking, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 Handle<JSReceiver> holder_; | 256 Handle<JSReceiver> holder_; |
256 Handle<Map> holder_map_; | 257 Handle<Map> holder_map_; |
257 const Handle<JSReceiver> initial_holder_; | 258 const Handle<JSReceiver> initial_holder_; |
258 uint32_t number_; | 259 uint32_t number_; |
259 }; | 260 }; |
260 | 261 |
261 | 262 |
262 } } // namespace v8::internal | 263 } } // namespace v8::internal |
263 | 264 |
264 #endif // V8_LOOKUP_H_ | 265 #endif // V8_LOOKUP_H_ |
OLD | NEW |