1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/ruby_vm/views
Takashi Kokubun 81a8d1cf09
Skip checking ROBJECT_EMBED
when we already check ROBJECT_NUMIV(self) is larger than
ROBJECT_EMBED_LEN_MAX at the beginning of the method, because the number
of instance variables for the same object doesn't decrease.

```
$ benchmark-driver -v --rbenv 'before --jit;after --jit' --repeat-count=4 --alternate --output=all benchmark_3000.yml
before --jit: ruby 3.0.0dev (2020-12-23T06:32:19Z master dbb4f19969) +JIT [x86_64-linux]
after --jit: ruby 3.0.0dev (2020-12-23T07:45:42Z master 95e866c098) +JIT [x86_64-linux]
last_commit=Skip checking ROBJECT_EMBED
Calculating -------------------------------------
                              before --jit           after --jit
Optcarrot 3000 frames   102.34091772397872    102.77738408379015 fps
                        103.37784821624231    105.46530219076179
                        104.39567016876369    106.43712452152215
                        105.31782092252713    106.54986150067481
```
2020-12-22 23:50:43 -08:00
..
_attributes.erb
_c_expr.erb
_comptime_insn_stack_increase.erb
_copyright.erb
_insn_entry.erb
_insn_len_info.erb
_insn_name_info.erb
_insn_operand_info.erb
_insn_sp_pc_dependency.erb
_insn_type_chars.erb
_leaf_helpers.erb Lazily move PC with RUBY_VM_CHECK_INTS 2020-12-16 23:06:28 -08:00
_mjit_compile_getinlinecache.erb Inline getconstant on JIT (#3906) 2020-12-16 06:24:07 -08: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 Prefer stdbool in vm_exec 2020-12-21 21:16:39 -08:00
_notice.erb
_sp_inc_helpers.erb
_trace_instruction.erb
insns.inc.erb
insns_info.inc.erb
mjit_compile.inc.erb Prefer stdbool in vm_exec 2020-12-21 21:16:39 -08:00
opt_sc.inc.erb
optinsn.inc.erb
optunifs.inc.erb
vm.inc.erb
vmtc.inc.erb