diff --git a/src/frames.cc b/src/frames.cc index 2a1a26461d..2d5c3c71c3 100644 --- a/src/frames.cc +++ b/src/frames.cc @@ -718,7 +718,8 @@ void StandardFrame::IterateCompiledFrame(ObjectVisitor* v) const { (frame_header_size + StandardFrameConstants::kFixedFrameSizeAboveFp); Object** frame_header_base = &Memory::Object_at(fp() - frame_header_size); - Object** frame_header_limit = &Memory::Object_at(fp()); + Object** frame_header_limit = + &Memory::Object_at(fp() - StandardFrameConstants::kCPSlotSize); Object** parameters_base = &Memory::Object_at(sp()); Object** parameters_limit = frame_header_base - slot_space / kPointerSize;