diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-07 23:14:07 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-07 23:16:24 -0800 |
commit | e93e780f3d37705a26a9160c60cc92255c1ff60a (patch) | |
tree | fcaee4606e3ba755cb1c560f8e1ce4db0385d37d /rjit_c.rb | |
parent | b67f07fa2c5b7fe9a08563bbc8084401b2ec68c4 (diff) |
Remove MJIT's builtin function compiler
Diffstat (limited to 'rjit_c.rb')
-rw-r--r-- | rjit_c.rb | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -435,16 +435,6 @@ module RubyVM::RJIT # :nodoc: all Primitive.cexpr! 'rb_hash_values((VALUE)NUM2PTR(cdhash_addr))' end - def builtin_compiler(buf, bf_ptr, index, stack_size, builtin_inline_p) - _bf_addr = bf_ptr.to_i - # Call "rjit_compile_invokebuiltin_for_#{func}" in mk_builtin_loader.rb - Primitive.cstmt! %{ - RB_BUILTIN bf = (RB_BUILTIN)NUM2PTR(_bf_addr); - bf->compiler(buf, NIL_P(index) ? -1 : NUM2LONG(index), NUM2UINT(stack_size), RTEST(builtin_inline_p)); - return Qnil; - } - end - def has_cache_for_send(cc_ptr, insn) _cc_addr = cc_ptr.to_i Primitive.cstmt! %{ @@ -1169,7 +1159,6 @@ module RubyVM::RJIT # :nodoc: all argc: [CType::Immediate.parse("int"), Primitive.cexpr!("OFFSETOF((*((struct rb_builtin_function *)NULL)), argc)")], index: [CType::Immediate.parse("int"), Primitive.cexpr!("OFFSETOF((*((struct rb_builtin_function *)NULL)), index)")], name: [CType::Pointer.new { CType::Immediate.parse("char") }, Primitive.cexpr!("OFFSETOF((*((struct rb_builtin_function *)NULL)), name)")], - compiler: [CType::Immediate.parse("void *"), Primitive.cexpr!("OFFSETOF((*((struct rb_builtin_function *)NULL)), compiler)")], ) end |