Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 0fc2f211389ca323782422b981e2bbac0df3232a..ffc9357a9dc516779d54790ceb5aa7be1c390b12 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -9923,9 +9923,7 @@ void HOptimizedGraphBuilder::VisitCallNew(CallNew* expr) { |
// Force completion of inobject slack tracking before generating |
// allocation code to finalize instance size. |
- if (constructor->IsInobjectSlackTrackingInProgress()) { |
- constructor->CompleteInobjectSlackTracking(); |
- } |
+ constructor->CompleteInobjectSlackTrackingIfActive(); |
// Calculate instance size from initial map of constructor. |
DCHECK(constructor->has_initial_map()); |