use of com.googlecode.aviator.code.interpreter.ir.BranchIfIR in project aviatorscript by killme2008.
the class InterpretCodeGenerator method onJoinLeft.
@Override
public void onJoinLeft(final Token<?> lookhead) {
if (!OperationRuntime.containsOpFunction(this.compileEnv, OperatorType.AND)) {
emit(new AssertTypeIR(AssertTypes.Bool));
Label label = makeLabel();
pushLabel0(label);
this.instruments.add(new BranchIfIR(label, new SourceInfo(this.sourceFile, lookhead.getLineNo())));
emit(PopIR.INSTANCE);
}
}
Aggregations