public class JVM extends java.lang.Object implements CompilerTarget
Constructor and Description |
---|
JVM()
public static void main(String[] args) {
IR_Scope scope = IR_Builder.buildFromMain(args);
System.out.println("INTERMEDIATE REPRESENTATION:");
System.out.println(scope);
JVM jvm = new JVM();
System.out.println("\nGENERATED BYTECODE:");
jvm.codegen(scope);
}
|
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.ClassVisitor |
cls() |
org.jruby.compiler.ir.targets.JVM.ClassData |
clsData() |
void |
codegen(IRScope scope) |
void |
codegen(IRScript script) |
void |
emit(com.kenai.constantine.Constant constant) |
void |
emit(Instr instr) |
void |
emit(IRClass cls) |
void |
emit(IRMethod method) |
void |
emit(Operand operand) |
void |
emit(Variable variable) |
void |
emitBEQ(BEQInstr beq) |
void |
emitCALL(CallInstr call) |
void |
emitCOPY(CopyInstr copy) |
void |
emitDEF_CLS_METH(DefineClassMethodInstr instr) |
void |
emitDEF_INST_METH(DefineInstanceMethodInstr instr) |
void |
emitGET_FIELD(GetFieldInstr putField) |
void |
emitJUMP(JumpInstr jump) |
void |
emitLABEL(LABEL_Instr lbl) |
void |
emitPUT_FIELD(PutFieldInstr putField) |
void |
emitRECV_ARG(ReceiveArgumentInstruction recvArg) |
void |
emitRETURN(ReturnInstr ret) |
org.objectweb.asm.commons.GeneratorAdapter |
method() |
void |
popclass() |
void |
popmethod() |
void |
pushclass() |
void |
pushmethod(java.lang.String name) |
public JVM()
public org.objectweb.asm.ClassVisitor cls()
public org.jruby.compiler.ir.targets.JVM.ClassData clsData()
public void pushclass()
public void popclass()
public org.objectweb.asm.commons.GeneratorAdapter method()
public void pushmethod(java.lang.String name)
public void popmethod()
public void codegen(IRScope scope)
codegen
in interface CompilerTarget
public void codegen(IRScript script)
public void emit(IRClass cls)
public void emit(IRMethod method)
public void emit(Instr instr)
public void emit(com.kenai.constantine.Constant constant)
public void emit(Operand operand)
public void emit(Variable variable)
public void emitBEQ(BEQInstr beq)
public void emitCOPY(CopyInstr copy)
public void emitCALL(CallInstr call)
public void emitDEF_INST_METH(DefineInstanceMethodInstr instr)
public void emitDEF_CLS_METH(DefineClassMethodInstr instr)
public void emitJUMP(JumpInstr jump)
public void emitLABEL(LABEL_Instr lbl)
public void emitPUT_FIELD(PutFieldInstr putField)
public void emitGET_FIELD(GetFieldInstr putField)
public void emitRETURN(ReturnInstr ret)
public void emitRECV_ARG(ReceiveArgumentInstruction recvArg)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.