Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index b3cacc8cef0460e76c9ce01dcc2b4512ea184fe9..63fda5aef0835d217ab8280a8263c1b6a396c5c9 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -3785,6 +3785,22 @@ void MacroAssembler::JumpIfDictionaryInPrototypeChain( |
} |
+void MacroAssembler::AdaptUnoptimizedFrameForOsrEntry( |
+ int unoptimized_slot_count, Register scratch0, Register scratch1) { |
+ if (unoptimized_slot_count > 0) { |
+ Label loop_start; |
+ add(scratch0, fp, Operand(JavaScriptFrameConstants::kFeedbackVectorOffset)); |
+ bind(&loop_start); |
+ ldr(scratch1, MemOperand(scratch0, -1 * kPointerSize)); |
+ str(scratch1, MemOperand(scratch0, 0)); |
+ sub(scratch0, scratch0, Operand(kPointerSize)); |
+ cmp(scratch0, sp); |
+ b(gt, &loop_start); |
+ } |
+ add(sp, sp, Operand(kPointerSize)); |
+} |
+ |
+ |
#ifdef DEBUG |
bool AreAliased(Register reg1, |
Register reg2, |