void JIT::emit_op_ret(Instruction* currentInstruction) { unsigned dst = currentInstruction[1].u.operand; emitLoad(dst, regT1, regT0); checkStackPointerAlignment(); emitFunctionEpilogue(); ret(); }
void JIT::emit_op_ret(const Instruction* currentInstruction) { auto bytecode = currentInstruction->as<OpRet>(); int value = bytecode.m_value.offset(); emitLoad(value, regT1, regT0); checkStackPointerAlignment(); emitRestoreCalleeSaves(); emitFunctionEpilogue(); ret(); }