summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-18 23:43:24 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-23 06:44:28 +0900
commit5cda5938f899ca9ac72f1e44c216f63826516422 (patch)
tree9f958c701a5e49c4b2e18c9d00d7e6185dd5ea7b /mjit_c.rb
parent2f5b37533e6129646ddfacffc3da34be02bc9e87 (diff)
Bindgen enum with builtin
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6418
Diffstat (limited to 'mjit_c.rb')
-rw-r--r--mjit_c.rb24
1 files changed, 20 insertions, 4 deletions
diff --git a/mjit_c.rb b/mjit_c.rb
index ac3b2a2ff2..452b534bd3 100644
--- a/mjit_c.rb
+++ b/mjit_c.rb
@@ -123,10 +123,6 @@ module RubyVM::MJIT
### MJIT bindgen begin ###
- def C.NOT_COMPILED_STACK_SIZE
- Primitive.cexpr! %q{ INT2NUM(NOT_COMPILED_STACK_SIZE) }
- end
-
def C.USE_LAZY_LOAD
Primitive.cexpr! %q{ RBOOL(USE_LAZY_LOAD != 0) }
end
@@ -135,13 +131,33 @@ module RubyVM::MJIT
Primitive.cexpr! %q{ RBOOL(USE_RVARGC != 0) }
end
+ def C.NOT_COMPILED_STACK_SIZE
+ Primitive.cexpr! %q{ INT2NUM(NOT_COMPILED_STACK_SIZE) }
+ end
+
def C.VM_CALL_KW_SPLAT
Primitive.cexpr! %q{ INT2NUM(VM_CALL_KW_SPLAT) }
end
+ def C.VM_CALL_KW_SPLAT_bit
+ Primitive.cexpr! %q{ INT2NUM(VM_CALL_KW_SPLAT_bit) }
+ end
+
def C.VM_CALL_TAILCALL
Primitive.cexpr! %q{ INT2NUM(VM_CALL_TAILCALL) }
end
+ def C.VM_CALL_TAILCALL_bit
+ Primitive.cexpr! %q{ INT2NUM(VM_CALL_TAILCALL_bit) }
+ end
+
+ def C.VM_METHOD_TYPE_CFUNC
+ Primitive.cexpr! %q{ INT2NUM(VM_METHOD_TYPE_CFUNC) }
+ end
+
+ def C.VM_METHOD_TYPE_ISEQ
+ Primitive.cexpr! %q{ INT2NUM(VM_METHOD_TYPE_ISEQ) }
+ end
+
### MJIT bindgen end ###
end if RubyVM::MJIT.enabled?