@@ -493,21 +493,23 @@ void LiftoffAssembler::CallFrameSetupStub(int declared_function_index) {
493
493
494
494
void LiftoffAssembler::PrepareTailCall (int num_callee_stack_params,
495
495
int stack_param_delta) {
496
- UseScratchRegisterScope temps (this );
497
- Register scratch = temps.Acquire ();
498
-
499
- // Push the return address and frame pointer to complete the stack frame.
500
- sub (sp, sp, Operand (8 ));
501
- ldr (scratch, MemOperand (fp, 4 ));
502
- str (scratch, MemOperand (sp, 4 ));
503
- ldr (scratch, MemOperand (fp, 0 ));
504
- str (scratch, MemOperand (sp, 0 ));
505
-
506
- // Shift the whole frame upwards.
507
- int slot_count = num_callee_stack_params + 2 ;
508
- for (int i = slot_count - 1 ; i >= 0 ; --i) {
509
- ldr (scratch, MemOperand (sp, i * 4 ));
510
- str (scratch, MemOperand (fp, (i - stack_param_delta) * 4 ));
496
+ {
497
+ UseScratchRegisterScope temps (this );
498
+ Register scratch = temps.Acquire ();
499
+
500
+ // Push the return address and frame pointer to complete the stack frame.
501
+ sub (sp, sp, Operand (8 ));
502
+ ldr (scratch, MemOperand (fp, 4 ));
503
+ str (scratch, MemOperand (sp, 4 ));
504
+ ldr (scratch, MemOperand (fp, 0 ));
505
+ str (scratch, MemOperand (sp, 0 ));
506
+
507
+ // Shift the whole frame upwards.
508
+ int slot_count = num_callee_stack_params + 2 ;
509
+ for (int i = slot_count - 1 ; i >= 0 ; --i) {
510
+ ldr (scratch, MemOperand (sp, i * 4 ));
511
+ str (scratch, MemOperand (fp, (i - stack_param_delta) * 4 ));
512
+ }
511
513
}
512
514
513
515
// Set the new stack and frame pointer.
0 commit comments