Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 5df2e5a46d50f4d901e61921605475fcd88b600c..d6fdf0b28643f40b94ebcc07bd584ade1eb12542 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -4435,6 +4435,23 @@ void MacroAssembler::JumpIfDictionaryInPrototypeChain( |
} |
+void MacroAssembler::AdaptUnoptimizedFrameForOsrEntry( |
+ int unoptimized_slot_count, Register scratch0, Register scratch1) { |
+ DCHECK(jssp.Is(__ StackPointer())); |
+ if (unoptimized_slot_count > 0) { |
+ Label loop_start; |
+ Add(scratch0, fp, JavaScriptFrameConstants::kFeedbackVectorOffset); |
+ bind(&loop_start); |
+ Ldr(scratch1, MemOperand(scratch0, -1 * kPointerSize)); |
+ Str(scratch1, MemOperand(scratch0, 0)); |
+ Sub(scratch0, scratch0, kPointerSize); |
+ Cmp(scratch0, jssp); |
+ B(gt, &loop_start); |
+ } |
+ Add(jssp, jssp, kPointerSize); |
+} |
+ |
+ |
void MacroAssembler::GetRelocatedValueLocation(Register ldr_location, |
Register result) { |
DCHECK(!result.Is(ldr_location)); |