Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index c51b05729f6416821da6e52022d34d49c92825a6..967ce498ac1310487c524208a31f9f7df7515456 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -205,8 +205,18 @@ Handle<Object> LookupIterator::FetchValue() const { |
} |
+int LookupIterator::GetConstantIndex() const { |
+ DCHECK(has_property_); |
+ DCHECK_EQ(DESCRIPTOR, property_encoding_); |
+ DCHECK_EQ(v8::internal::CONSTANT, property_details_.type()); |
+ return descriptor_number(); |
+} |
+ |
+ |
FieldIndex LookupIterator::GetFieldIndex() const { |
- DCHECK_EQ(PROPERTY, state_); |
+ DCHECK(has_property_); |
+ DCHECK_EQ(DESCRIPTOR, property_encoding_); |
+ DCHECK_EQ(v8::internal::FIELD, property_details_.type()); |
int index = |
holder_map()->instance_descriptors()->GetFieldIndex(descriptor_number()); |
bool is_double = representation().IsDouble(); |