ruby/tool/ruby_vm/views
Kevin Newton 6068da8937 Finer-grained constant cache invalidation (take 2)
This commit reintroduces finer-grained constant cache invalidation.
After 8008fb7 got merged, it was causing issues on token-threaded
builds (such as on Windows).

The issue was that when you're iterating through instruction sequences
and using the translator functions to get back the instruction structs,
you're either using `rb_vm_insn_null_translator` or
`rb_vm_insn_addr2insn2` depending if it's a direct-threading build.
`rb_vm_insn_addr2insn2` does some normalization to always return to
you the non-trace version of whatever instruction you're looking at.
`rb_vm_insn_null_translator` does not do that normalization.

This means that when you're looping through the instructions if you're
trying to do an opcode comparison, it can change depending on the type
of threading that you're using. This can be very confusing. So, this
commit creates a new translator function
`rb_vm_insn_normalizing_translator` to always return the non-trace
version so that opcode comparisons don't have to worry about different
configurations.

[Feature #18589]
2022-04-01 14:48:22 -04:00
..
_attributes.erb
_c_expr.erb
_comptime_insn_stack_increase.erb
_copyright.erb
_insn_entry.erb Make leaf const in VM generator 2021-12-05 11:06:05 -05:00
_insn_len_info.erb Expose instruction information for debuggers [Feature #18026] 2021-10-04 09:43:09 -07:00
_insn_name_info.erb Expose instruction information for debuggers [Feature #18026] 2021-10-04 09:43:09 -07:00
_insn_operand_info.erb Expose instruction information for debuggers [Feature #18026] 2021-10-04 09:43:09 -07:00
_insn_sp_pc_dependency.erb
_insn_type_chars.erb
_leaf_helpers.erb Remove DEFINED_IVAR2 from enum 2021-03-10 09:38:20 -08:00
_mjit_compile_getinlinecache.erb Finer-grained constant cache invalidation (take 2) 2022-04-01 14:48:22 -04:00
_mjit_compile_insn.erb Check mjit_call_p only when interrupted 2020-12-19 21:38:14 -08:00
_mjit_compile_insn_body.erb Check mjit_call_p only when interrupted 2020-12-19 21:38:14 -08:00
_mjit_compile_invokebuiltin.erb
_mjit_compile_ivar.erb Skip checking ROBJECT_EMBED 2020-12-22 23:50:43 -08:00
_mjit_compile_pc_and_sp.erb Lazily move PC with RUBY_VM_CHECK_INTS 2020-12-16 23:06:28 -08:00
_mjit_compile_send.erb Add ISEQ_BODY macro 2022-03-24 10:03:51 -04:00
_notice.erb
_sp_inc_helpers.erb
_trace_instruction.erb Allow tracing of optimized methods 2021-08-21 10:15:01 -07:00
insns.inc.erb
insns_info.inc.erb
mjit_compile.inc.erb Avoid re-entering opt_invokebuiltin_delegate_leave 2021-01-11 07:40:38 +00:00
opt_sc.inc.erb
optinsn.inc.erb
optunifs.inc.erb
vm.inc.erb Remove the scraper 2021-10-20 18:19:38 -04:00
vmtc.inc.erb