summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-02-13 23:05:56 -0800
committerTakashi Kokubun <[email protected]>2023-03-05 23:28:59 -0800
commitbc50b0475a64dbae293c29bf3e6b72ba12424c99 (patch)
treedd6f18bc22ce6e31df27944a4671f8e5106ecb59 /mjit_c.rb
parent67cc53214cdb5900ccc75e195d8e9c85dea519f9 (diff)
Implement opt_and and opt_or
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7448
Diffstat (limited to 'mjit_c.rb')
-rw-r--r--mjit_c.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/mjit_c.rb b/mjit_c.rb
index a31392f6e9..5979c5ab51 100644
--- a/mjit_c.rb
+++ b/mjit_c.rb
@@ -329,6 +329,10 @@ module RubyVM::MJIT # :nodoc: all
Primitive.cexpr! %q{ UINT2NUM(ARRAY_REDEFINED_OP_FLAG) }
end
+ def C.BOP_AND
+ Primitive.cexpr! %q{ UINT2NUM(BOP_AND) }
+ end
+
def C.BOP_AREF
Primitive.cexpr! %q{ UINT2NUM(BOP_AREF) }
end
@@ -357,6 +361,10 @@ module RubyVM::MJIT # :nodoc: all
Primitive.cexpr! %q{ UINT2NUM(BOP_MOD) }
end
+ def C.BOP_OR
+ Primitive.cexpr! %q{ UINT2NUM(BOP_OR) }
+ end
+
def C.BOP_PLUS
Primitive.cexpr! %q{ UINT2NUM(BOP_PLUS) }
end