summaryrefslogtreecommitdiff
path: root/rjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-12 13:55:39 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-12 15:15:08 -0700
commit9cd5441d28002768d9f492140757652548b86727 (patch)
tree0ad4ac8e4c56c64d0ced398cdbdd8a3878d7f862 /rjit_c.rb
parentbbd9221e46649cc0d620efe4542bb93ff89fcb47 (diff)
downloadruby-9cd5441d28002768d9f492140757652548b86727.tar.gz
RJIT: Implement --rjit-trace-exits
Diffstat (limited to 'rjit_c.rb')
-rw-r--r--rjit_c.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/rjit_c.rb b/rjit_c.rb
index 9e1a277b47..cf9b8c3cc8 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -294,6 +294,10 @@ module RubyVM::RJIT # :nodoc: all
}
end
+ def rjit_exit_traces
+ Primitive.cexpr! 'rjit_exit_traces()'
+ end
+
#
# Utilities: Not used by RJIT, but useful for debugging
#
@@ -585,6 +589,10 @@ module RubyVM::RJIT # :nodoc: all
Primitive.cexpr! %q{ SIZET2NUM((size_t)rjit_optimized_call) }
end
+ def C.rjit_record_exit_stack
+ Primitive.cexpr! %q{ SIZET2NUM((size_t)rjit_record_exit_stack) }
+ end
+
def C.rjit_str_neq_internal
Primitive.cexpr! %q{ SIZET2NUM((size_t)rjit_str_neq_internal) }
end
@@ -1239,6 +1247,7 @@ module RubyVM::RJIT # :nodoc: all
call_threshold: [CType::Immediate.parse("unsigned int"), Primitive.cexpr!("OFFSETOF((*((struct rjit_options *)NULL)), call_threshold)")],
exec_mem_size: [CType::Immediate.parse("unsigned int"), Primitive.cexpr!("OFFSETOF((*((struct rjit_options *)NULL)), exec_mem_size)")],
stats: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rjit_options *)NULL)), stats)")],
+ trace_exits: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rjit_options *)NULL)), trace_exits)")],
dump_disasm: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rjit_options *)NULL)), dump_disasm)")],
pause: [self._Bool, Primitive.cexpr!("OFFSETOF((*((struct rjit_options *)NULL)), pause)")],
)