Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index fd7f5e6b93a00d2867f4a00f3d40b905038e250b..857b0db874c4902afa30a6b0be0b1cac09d65291 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -9849,6 +9849,7 @@ void HOptimizedGraphBuilder::BuildInlinedCallArray( |
// Checks whether allocation using the given constructor can be inlined. |
static bool IsAllocationInlineable(Handle<JSFunction> constructor) { |
return constructor->has_initial_map() && |
+ !IsClassConstructor(constructor->shared()->kind()) && |
constructor->initial_map()->instance_type() == JS_OBJECT_TYPE && |
constructor->initial_map()->instance_size() < |
HAllocate::kMaxInlineSize; |