Index: src/crankshaft/lithium.cc |
diff --git a/src/crankshaft/lithium.cc b/src/crankshaft/lithium.cc |
index 677639095a522f64a9729a6100ad5f8472df79d6..1525ab6fdfa86869c3ff9f163ea6a605f1c45bfa 100644 |
--- a/src/crankshaft/lithium.cc |
+++ b/src/crankshaft/lithium.cc |
@@ -247,7 +247,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), |