@@ -4086,39 +4086,7 @@ void CodeGen::genEnregisterOSRArgsAndLocals()
4086
4086
4087
4087
GetEmitter ()->emitIns_R_AR (ins_Load (lclTyp), size, varDsc->GetRegNum (), genFramePointerReg (), offset);
4088
4088
4089
- #elif defined(TARGET_ARM64)
4090
-
4091
- // Patchpoint offset is from top of Tier0 frame
4092
- //
4093
- // We need to determine the frame-pointer relative
4094
- // offset for this variable in the osr frame.
4095
- //
4096
- // First add the Tier0 frame size
4097
- //
4098
- const int tier0FrameSize = compiler->info .compPatchpointInfo ->TotalFrameSize ();
4099
-
4100
- // then add the OSR frame size
4101
- //
4102
- const int osrFrameSize = genTotalFrameSize ();
4103
-
4104
- // then subtract OSR SP-FP delta
4105
- //
4106
- const int osrSpToFpDelta = genSPtoFPdelta ();
4107
-
4108
- // | => tier0 top of frame relative
4109
- // | + => tier0 bottom of frame relative
4110
- // | | + => osr bottom of frame (sp) relative
4111
- // | | | - => osr fp relative
4112
- // | | | |
4113
- const int offset = stkOffs + tier0FrameSize + osrFrameSize - osrSpToFpDelta;
4114
-
4115
- JITDUMP (" ---OSR--- V%02u (reg) Tier0 virtual offset %d OSR frame size %d OSR sp-fp "
4116
- " delta %d total offset %d (0x%x)\n " ,
4117
- varNum, stkOffs, osrFrameSize, osrSpToFpDelta, offset, offset);
4118
-
4119
- genInstrWithConstant (ins_Load (lclTyp), size, varDsc->GetRegNum (), genFramePointerReg (), offset, initReg);
4120
- *pInitRegZeroed = false ;
4121
- #elif defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64)
4089
+ #elif defined(TARGET_LOONGARCH64) || defined(TARGET_RISCV64) || defined(TARGET_ARM64)
4122
4090
4123
4091
// Patchpoint offset is from top of Tier0 frame
4124
4092
//
0 commit comments