Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 526f3d7238b10735c11a34224f6f94b1f5bcd1b7..915383b81d6b11bc63a09d70c31a4fbbaf0c2641 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -34,6 +34,7 @@ |
#include "src/crankshaft/hydrogen-uint32-analysis.h" |
#include "src/crankshaft/lithium-allocator.h" |
#include "src/crankshaft/typing.h" |
+#include "src/field-type.h" |
#include "src/full-codegen/full-codegen.h" |
#include "src/ic/call-optimization.h" |
#include "src/ic/ic.h" |
@@ -6258,6 +6259,13 @@ HInstruction* HOptimizedGraphBuilder::BuildStoreNamedField( |
return instr; |
} |
+Handle<FieldType> |
+HOptimizedGraphBuilder::PropertyAccessInfo::GetFieldTypeFromMap( |
+ Handle<Map> map) const { |
+ DCHECK(IsFound()); |
+ DCHECK(number_ < map->NumberOfOwnDescriptors()); |
+ return handle(map->instance_descriptors()->GetFieldType(number_), isolate()); |
+} |
bool HOptimizedGraphBuilder::PropertyAccessInfo::IsCompatible( |
PropertyAccessInfo* info) { |