diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-12 13:55:39 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-12 15:15:08 -0700 |
commit | 9cd5441d28002768d9f492140757652548b86727 (patch) | |
tree | 0ad4ac8e4c56c64d0ced398cdbdd8a3878d7f862 /rjit_c.rb | |
parent | bbd9221e46649cc0d620efe4542bb93ff89fcb47 (diff) | |
download | ruby-9cd5441d28002768d9f492140757652548b86727.tar.gz |
RJIT: Implement --rjit-trace-exits
Diffstat (limited to 'rjit_c.rb')
-rw-r--r-- | rjit_c.rb | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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)")], ) |