| Index: src/compiler/ia32/code-generator-ia32.cc
|
| diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc
|
| index d20848918d30aad46f247217479f0e6b9e39544c..25b972d9bb16b680db223b0c65f2b5654fabc2d2 100644
|
| --- a/src/compiler/ia32/code-generator-ia32.cc
|
| +++ b/src/compiler/ia32/code-generator-ia32.cc
|
| @@ -1043,8 +1043,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, ebx, eax);
|
| }
|
|
|
| if (stack_slots > 0) {
|
|
|