Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 413aa517faa549951a583e441f805461e6532283..268b704527d29c4a4cd34617d549640ae9216bf3 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3138,6 +3138,12 @@ int DescriptorArray::GetFieldIndex(int descriptor_number) { |
return GetDetails(descriptor_number).field_index(); |
} |
+FieldType* DescriptorArray::GetFieldType(int descriptor_number) { |
+ DCHECK(GetDetails(descriptor_number).location() == kField); |
+ Object* wrapped_type = GetValue(descriptor_number); |
+ return Map::UnwrapFieldType(wrapped_type); |
+} |
+ |
Object* DescriptorArray::GetConstant(int descriptor_number) { |
return GetValue(descriptor_number); |
} |