20
20
import com .oracle .truffle .api .profiles .ConditionProfile ;
21
21
import org .truffleruby .Layouts ;
22
22
import org .truffleruby .core .cast .BooleanCastNode ;
23
- import org .truffleruby .core .cast .BooleanCastNodeGen ;
24
23
import org .truffleruby .core .string .StringOperations ;
25
24
import org .truffleruby .language .NotProvided ;
26
25
import org .truffleruby .language .RubyNode ;
@@ -99,7 +98,7 @@ public DynamicObject create(double value, DynamicObject self, int digits,
99
98
100
99
@ Specialization (guards = "value == NEGATIVE_INFINITY || value == POSITIVE_INFINITY" )
101
100
public DynamicObject createInfinity (BigDecimalType value , DynamicObject self , Object digits ,
102
- @ Cached ("createBooleanCastNode ()" ) BooleanCastNode booleanCastNode ,
101
+ @ Cached ("create ()" ) BooleanCastNode booleanCastNode ,
103
102
@ Cached ("create()" ) GetIntegerConstantNode getIntegerConstantNode ,
104
103
@ Cached ("createPrivate()" ) CallDispatchHeadNode modeCallNode ,
105
104
@ Cached ("createBinaryProfile()" ) ConditionProfile raiseProfile ) {
@@ -121,7 +120,7 @@ public DynamicObject createInfinity(BigDecimalType value, DynamicObject self, Ob
121
120
122
121
@ Specialization (guards = "value == NAN" )
123
122
public DynamicObject createNaN (BigDecimalType value , DynamicObject self , Object digits ,
124
- @ Cached ("createBooleanCastNode ()" ) BooleanCastNode booleanCastNode ,
123
+ @ Cached ("create ()" ) BooleanCastNode booleanCastNode ,
125
124
@ Cached ("create()" ) GetIntegerConstantNode getIntegerConstantNode ,
126
125
@ Cached ("createPrivate()" ) CallDispatchHeadNode modeCallNode ,
127
126
@ Cached ("createBinaryProfile()" ) ConditionProfile raiseProfile ) {
@@ -273,8 +272,4 @@ protected BigDecimalCastNode createBigDecimalCastNode() {
273
272
return BigDecimalCastNodeGen .create (null , null );
274
273
}
275
274
276
- protected BooleanCastNode createBooleanCastNode () {
277
- return BooleanCastNodeGen .create (null );
278
- }
279
-
280
275
}
0 commit comments