| Index: src/compiler/x64/code-generator-x64.cc
|
| diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
|
| index 973bbd1ef06bb794d153701c380eeae63b2c4057..3387813bf6df589b3ab08d6862ca43086f4246f8 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -1207,8 +1207,13 @@ void CodeGenerator::AssemblePrologue() {
|
| // remaining stack slots.
|
| if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --");
|
| osr_pc_offset_ = __ pc_offset();
|
| - DCHECK(stack_slots >= frame()->GetOsrStackSlotCount());
|
| - stack_slots -= frame()->GetOsrStackSlotCount();
|
| + int osr_stack_slot_count = frame()->GetOsrStackSlotCount();
|
| + DCHECK(stack_slots >= osr_stack_slot_count);
|
| + stack_slots -= osr_stack_slot_count;
|
| +
|
| + // Full-code javascript functions have a type feedback vector in the frame.
|
| + // Shift any locals down one slot, and adjust the stack pointer.
|
| + __ OSRDropVectorFromStack(osr_stack_slot_count, rbx, rax);
|
| }
|
|
|
| if (stack_slots > 0) {
|
|
|