Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 2255ab6f971f6d679d92253f2a567d5fb01aa6f4..7be83bed13312528d799b5964f28402e010f1690 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6028,7 +6028,8 @@ void HGraphBuilder::VisitCall(Call* expr) { |
// Checks whether allocation using the given constructor can be inlined. |
static bool IsAllocationInlineable(Handle<JSFunction> constructor) { |
return constructor->has_initial_map() && |
- constructor->initial_map()->instance_type() == JS_OBJECT_TYPE; |
+ constructor->initial_map()->instance_type() == JS_OBJECT_TYPE && |
+ constructor->initial_map()->instance_size() < HAllocateObject::kMaxSize; |
} |