Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 0e9b95e690b8fcc2d72757452c50d490467e3bc4..c48de4c435beac8ecc5ccac5a31b05216174e0e6 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6124,6 +6124,14 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic( |
} |
+Handle<Map> HOptimizedGraphBuilder::PropertyAccessInfo::map() { |
+ JSFunction* ctor = IC::GetRootConstructor( |
+ type_, current_info()->closure()->context()->native_context()); |
+ if (ctor != NULL) return handle(ctor->initial_map()); |
+ return type_->AsClass()->Map(); |
+} |
+ |
+ |
static bool NeedsWrappingFor(Type* type, Handle<JSFunction> target) { |
return type->Is(Type::NumberOrString()) && |
target->shared()->strict_mode() == SLOPPY && |