summaryrefslogtreecommitdiff
path: root/rjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-04-02 15:26:46 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-04-02 15:27:40 -0700
commit6002b12611c3cee921fc8aef76b55db4b2d0fbcd (patch)
treed1dc5f8749239a5c35ef42eacbb812e3f8eb40f1 /rjit_c.rb
parent4fc336127e54dde8a744acdb5157c17e7ae857d3 (diff)
downloadruby-6002b12611c3cee921fc8aef76b55db4b2d0fbcd.tar.gz
RJIT: Support entry with different PCs
Diffstat (limited to 'rjit_c.rb')
-rw-r--r--rjit_c.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/rjit_c.rb b/rjit_c.rb
index f873b4c89b..9bbc2bbcda 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -25,13 +25,6 @@ module RubyVM::RJIT # :nodoc: all
CType::Immediate.parse("size_t").new(addr)
end
- def rb_rjit_branch_stub_hit
- Primitive.cstmt! %{
- extern void *rb_rjit_branch_stub_hit(VALUE branch_stub, int sp_offset, int target0_p);
- return SIZET2NUM((size_t)rb_rjit_branch_stub_hit);
- }
- end
-
def rb_rjit_counters
addr = Primitive.cexpr! 'SIZET2NUM((size_t)&rb_rjit_counters)'
rb_rjit_runtime_counters.new(addr)
@@ -659,6 +652,14 @@ module RubyVM::RJIT # :nodoc: all
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_reg_nth_match) }
end
+ def C.rb_rjit_branch_stub_hit
+ Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_rjit_branch_stub_hit) }
+ end
+
+ def C.rb_rjit_entry_stub_hit
+ Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_rjit_entry_stub_hit) }
+ end
+
def C.rb_str_buf_append
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_str_buf_append) }
end
@@ -1436,7 +1437,6 @@ module RubyVM::RJIT # :nodoc: all
getblockpp_block_handler_none: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), getblockpp_block_handler_none)")],
getblockpp_not_gc_guarded: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), getblockpp_not_gc_guarded)")],
getblockpp_not_iseq_block: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), getblockpp_not_iseq_block)")],
- leave_start_pc_non_zero: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), leave_start_pc_non_zero)")],
compiled_block_count: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_rjit_runtime_counters *)NULL)), compiled_block_count)")],
)
end