summaryrefslogtreecommitdiff
path: root/tool/ruby_vm
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-03-12 12:22:19 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:31 -0400
commit5d834bcf9fb9596fd15f9e657a94caa8716b3f10 (patch)
tree6ae91f07eb1172c40966f7631e204d827a0f17f0 /tool/ruby_vm
parent439db7b81b588a1ee12475568cab7b8dab4e2cd3 (diff)
downloadruby-5d834bcf9fb9596fd15f9e657a94caa8716b3f10.tar.gz
YJIT: lazy polymorphic getinstancevariable
Lazily compile out a chain of checks for different known classes and whether `self` embeds its ivars or not. * Remove trailing whitespaces * Get proper addresss in Capstone disassembly * Lowercase address in Capstone disassembly Capstone uses lowercase for jump targets in generated listings. Let's match it. * Use the same successor in getivar guard chains Cuts down on duplication * Address reviews * Fix copypasta error * Add a comment
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r--tool/ruby_vm/models/instructions.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/tool/ruby_vm/models/instructions.rb b/tool/ruby_vm/models/instructions.rb
index ecf9fe7b6b..1533872d66 100644
--- a/tool/ruby_vm/models/instructions.rb
+++ b/tool/ruby_vm/models/instructions.rb
@@ -21,6 +21,5 @@ RubyVM::Instructions = RubyVM::BareInstructions.to_a + \
RubyVM::MicroJIT::ExampleInstructions.to_a
-
require_relative 'trace_instructions'
RubyVM::Instructions.freeze