Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index d5d546ab15d0886added9470e6a8db2b8590b4b1..5d78a4a2e33158d23e0a3d560251b1929ef40f67 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8582,8 +8582,8 @@ void HOptimizedGraphBuilder::VisitCallNew(CallNew* expr) { |
// Force completion of inobject slack tracking before generating |
// allocation code to finalize instance size. |
- if (constructor->IsInobjectSlackTrackingInProgress()) { |
- constructor->CompleteInobjectSlackTracking(); |
+ if (constructor->shared()->IsInobjectSlackTrackingInProgress()) { |
+ constructor->shared()->CompleteInobjectSlackTracking(); |
} |
// Calculate instance size from initial map of constructor. |