Index: src/crankshaft/lithium.cc |
diff --git a/src/crankshaft/lithium.cc b/src/crankshaft/lithium.cc |
index 2875692bf10bc6a5373a2f95f282b6a79a00236d..20c4e431253c65019e275c6d94e8d3d42157da52 100644 |
--- a/src/crankshaft/lithium.cc |
+++ b/src/crankshaft/lithium.cc |
@@ -250,7 +250,9 @@ void LPointerMap::PrintTo(StringStream* stream) { |
} |
LChunk::LChunk(CompilationInfo* info, HGraph* graph) |
- : base_frame_slots_(StandardFrameConstants::kFixedFrameSize / kPointerSize), |
+ : base_frame_slots_(info->IsStub() |
+ ? TypedFrameConstants::kFixedSlotCount |
+ : StandardFrameConstants::kFixedSlotCount), |
current_frame_slots_(base_frame_slots_), |
info_(info), |
graph_(graph), |