File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
src/main/java/org/truffleruby/core/support Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,32 @@ protected boolean other(Object value) {
222
222
}
223
223
}
224
224
225
+ @ Primitive (name = "true?" )
226
+ public abstract static class IsTrue extends PrimitiveArrayArgumentsNode {
227
+ @ Specialization
228
+ protected boolean bool (boolean value ) {
229
+ return value ;
230
+ }
231
+
232
+ @ Fallback
233
+ protected boolean other (Object value ) {
234
+ return false ;
235
+ }
236
+ }
237
+
238
+ @ Primitive (name = "false?" )
239
+ public abstract static class IsFalse extends PrimitiveArrayArgumentsNode {
240
+ @ Specialization
241
+ protected boolean bool (boolean value ) {
242
+ return !value ;
243
+ }
244
+
245
+ @ Fallback
246
+ protected boolean other (Object value ) {
247
+ return false ;
248
+ }
249
+ }
250
+
225
251
@ Primitive (name = "object_ivars" )
226
252
public abstract static class ObjectInstanceVariablesNode extends PrimitiveArrayArgumentsNode {
227
253
You can’t perform that action at this time.
0 commit comments