Esempio n. 1
0
        public override void compile(CompilerContext context, MethodVisitor mv)
        {
            // Generate the instruction label before the hook call so that
            // the hook is being executed when branching to the instruction.
            if (hasLabel())
            {
                mv.visitLabel(Label);
                Label = null;
            }

            context.visitHook(nativeCodeSequence);
            base.compile(context, mv);
        }
Esempio n. 2
0
 public override void compile(CompilerContext context, MethodVisitor mv)
 {
     startCompile(context, mv);
     context.compileNativeCodeSequence(nativeCodeSequence, this);
 }
Esempio n. 3
0
 public While(MethodVisitor methodVisitor, Label repeat, Label done)
 {
     this._methodVisitor = methodVisitor;
     this._repeat        = repeat;
     this._done          = done;
 }
Esempio n. 4
0
 internal JumpVisitor(ExpressionVisitor eval, MethodVisitor methodVisitor, Label target)
 {
     this._eval          = eval;
     this._methodVisitor = methodVisitor;
     this._target        = target;
 }
Esempio n. 5
0
 public Method(MethodVisitor methodVisitor, bool isVoid)
 {
     this._methodVisitor = methodVisitor;
     this._isVoid        = isVoid;
 }
Esempio n. 6
0
 public If(MethodVisitor methodVisitor, Label after)
 {
     this._methodVisitor = methodVisitor;
     this._after         = after;
 }
Esempio n. 7
0
        public override void compile(CompilerContext context, MethodVisitor mv)
        {
            startCompile(context, mv);

            context.visitCall(context.CodeBlock.StartAddress, getMethodName(context));
        }