Class: YTLJit::RubyType::RubyTypeBoxed

Inherits:
BaseType show all
Includes:
VM::TypeCodeGen::DefaultTypeCodeGen
Defined in:
lib/ytljit/vm_type.rb

Instance Attribute Summary

Attributes inherited from BaseType

#asm_type, #ruby_type

Instance Method Summary collapse

Methods included from VM::TypeCodeGen::DefaultTypeCodeGen

#gen_boxing, #gen_copy, #gen_unboxing, #have_element?, #init_type, #inspect, #instance

Methods inherited from BaseType

from_object, from_ruby_class, #initialize, related_ruby_class, type_tab

Constructor Details

This class inherits a constructor from YTLJit::RubyType::BaseType

Instance Method Details

#boxedObject



279
280
281
# File 'lib/ytljit/vm_type.rb', line 279

def boxed
  true
end

#to_boxObject



287
288
289
# File 'lib/ytljit/vm_type.rb', line 287

def to_box
  self
end

#to_unboxObject



283
284
285
# File 'lib/ytljit/vm_type.rb', line 283

def to_unbox
  @@unboxed_type_tab[ruby_type].instance
end