Module: YTLJit::VM::TypeCodeGen::RangeTypeBoxedCodeGen

Includes:
RangeTypeCommonCodeGen
Defined in:
lib/ytljit/vm_type_gen.rb

Instance Attribute Summary

Attributes included from RangeTypeCommonCodeGen

#args, #element_type

Instance Method Summary collapse

Methods included from RangeTypeCommonCodeGen

#==, #have_element?, #init, #inspect

Instance Method Details

#copy_typeObject



389
390
391
392
393
394
395
# File 'lib/ytljit/vm_type_gen.rb', line 389

def copy_type
  dro = self.class.from_ruby_class(@ruby_type)
  dro = dro.to_box
  dro.element_type = @element_type
  dro.args = @args
  dro
end

#instanceObject



382
383
384
385
386
387
# File 'lib/ytljit/vm_type_gen.rb', line 382

def instance
  ni = self.dup
  ni.instance_eval { extend RangeTypeBoxedCodeGen }
  ni.init
  ni
end