use of com.oracle.svm.core.graal.code.SubstrateLIRGenerator in project graal by oracle.
the class FarReturnLoweredNode method generate.
@Override
public void generate(NodeLIRBuilderTool gen) {
LIRGeneratorTool lirGenTool = gen.getLIRGeneratorTool();
AllocatableValue resultOperand = lirGenTool.resultOperandFor(result.getStackKind(), LIRKind.fromJavaKind(lirGenTool.target().arch, result.getStackKind()));
lirGenTool.emitMove(resultOperand, gen.operand(result));
((SubstrateLIRGenerator) lirGenTool).emitFarReturn(resultOperand, gen.operand(sp), gen.operand(ip));
}
use of com.oracle.svm.core.graal.code.SubstrateLIRGenerator in project graal by oracle.
the class ReadInstructionPointerNode method generate.
@Override
public void generate(NodeLIRBuilderTool generator) {
SubstrateLIRGenerator sgenerator = (SubstrateLIRGenerator) generator.getLIRGeneratorTool();
Value result = sgenerator.emitReadInstructionPointer();
generator.setResult(this, result);
}
Aggregations