3
3
import org .jruby .RubyInstanceConfig ;
4
4
import org .jruby .ir .listeners .IRScopeListener ;
5
5
import org .jruby .ir .listeners .InstructionsListener ;
6
- import org .jruby .ir .operands .Nil ;
7
- import org .jruby .ir .operands .TemporaryLocalVariable ;
6
+ import org .jruby .ir .operands .* ;
7
+ import org .jruby .ir .operands .Boolean ;
8
8
import org .jruby .ir .passes .BasicCompilerPassListener ;
9
9
import org .jruby .ir .passes .CompilerPass ;
10
10
import org .jruby .ir .passes .CompilerPassListener ;
@@ -24,8 +24,7 @@ public class IRManager {
24
24
private int dummyMetaClassCount = 0 ;
25
25
private final IRModuleBody object = new IRClassBody (this , null , "Object" , "" , 0 , null );
26
26
private final Nil nil = new Nil ();
27
- private final org .jruby .ir .operands .Boolean trueObject = new org .jruby .ir .operands .Boolean (true );
28
- private final org .jruby .ir .operands .Boolean falseObject = new org .jruby .ir .operands .Boolean (false );
27
+
29
28
// Listeners for debugging and testing of IR
30
29
private Set <CompilerPassListener > passListeners = new HashSet <CompilerPassListener >();
31
30
private CompilerPassListener defaultListener = new BasicCompilerPassListener ();
@@ -63,11 +62,11 @@ public Nil getNil() {
63
62
}
64
63
65
64
public org .jruby .ir .operands .Boolean getTrue () {
66
- return trueObject ;
65
+ return Boolean . TRUE ;
67
66
}
68
67
69
68
public org .jruby .ir .operands .Boolean getFalse () {
70
- return falseObject ;
69
+ return Boolean . FALSE ;
71
70
}
72
71
73
72
public IRModuleBody getObject () {
0 commit comments