@@ -1424,7 +1424,7 @@ public Operand run() {
1424
1424
}
1425
1425
case VCALLNODE :
1426
1426
return addResultInstr (scope , new RuntimeHelperCall (scope .createTemporaryVariable (), IS_DEFINED_METHOD ,
1427
- new Operand [] { scope .getSelf (), new StringLiteral (((VCallNode ) node ).getName ()), Boolean . FALSE }));
1427
+ new Operand [] { scope .getSelf (), new StringLiteral (((VCallNode ) node ).getName ()), manager . getFalse () }));
1428
1428
case YIELDNODE :
1429
1429
return buildDefinitionCheck (scope , new BlockGivenInstr (scope .createTemporaryVariable (), scope .getYieldClosureVariable ()), "yield" );
1430
1430
case ZSUPERNODE :
@@ -1491,7 +1491,7 @@ public Operand run() {
1491
1491
* ----------------------------------------------------------------- */
1492
1492
Label undefLabel = scope .getNewLabel ();
1493
1493
Variable tmpVar = addResultInstr (scope , new RuntimeHelperCall (scope .createTemporaryVariable (), IS_DEFINED_METHOD ,
1494
- new Operand []{scope .getSelf (), new StringLiteral (((FCallNode ) node ).getName ()), Boolean . FALSE }));
1494
+ new Operand []{scope .getSelf (), new StringLiteral (((FCallNode ) node ).getName ()), manager . getFalse () }));
1495
1495
addInstr (scope , BEQInstr .create (tmpVar , manager .getNil (), undefLabel ));
1496
1496
Operand argsCheckDefn = buildGetArgumentDefinition (((FCallNode ) node ).getArgsNode (), scope , "method" );
1497
1497
return buildDefnCheckIfThenPaths (scope , undefLabel , argsCheckDefn );
@@ -1546,7 +1546,7 @@ public Operand run() {
1546
1546
Variable tmpVar = scope .createTemporaryVariable ();
1547
1547
Operand receiver = build (attrAssign .getReceiverNode (), scope );
1548
1548
addInstr (scope , new RuntimeHelperCall (tmpVar , IS_DEFINED_METHOD ,
1549
- new Operand [] { receiver , new StringLiteral (attrAssign .getName ()), Boolean . TRUE }));
1549
+ new Operand [] { receiver , new StringLiteral (attrAssign .getName ()), manager . getTrue () }));
1550
1550
addInstr (scope , BEQInstr .create (tmpVar , manager .getNil (), undefLabel ));
1551
1551
Operand argsCheckDefn = buildGetArgumentDefinition (attrAssign .getArgsNode (), scope , "assignment" );
1552
1552
return buildDefnCheckIfThenPaths (scope , undefLabel , argsCheckDefn );
@@ -3200,7 +3200,7 @@ public Operand buildReturn(ReturnNode returnNode, IRScope s) {
3200
3200
// If this happens to be a module body, the runtime throws a local jump error if the
3201
3201
// closure is a proc. If the closure is a lambda, then this becomes a normal return.
3202
3202
IRMethod m = s .getNearestMethod ();
3203
- addInstr (s , new RuntimeHelperCall (null , CHECK_FOR_LJE , new Operand [] { m == null ? Boolean . TRUE : Boolean . FALSE }));
3203
+ addInstr (s , new RuntimeHelperCall (null , CHECK_FOR_LJE , new Operand [] { m == null ? manager . getTrue () : manager . getFalse () }));
3204
3204
retVal = processEnsureRescueBlocks (s , retVal );
3205
3205
addInstr (s , new NonlocalReturnInstr (retVal , m == null ? "--none--" : m .getName ()));
3206
3206
} else if (s .isModuleBody ()) {
0 commit comments