Module: YTLJit::VM::TypeCodeGen::ArrayTypeBoxedCodeGen

Includes:
AbsArch, CommonCodeGen, ArrayTypeCommonCodeGen
Defined in:
lib/ytljit/vm_type_gen.rb

Constant Summary

Constants included from AbsArch

AbsArch::AL, AbsArch::BL, AbsArch::CL, AbsArch::DL, AbsArch::FUNC_ARG, AbsArch::FUNC_ARG_YTL, AbsArch::FUNC_FLOAT_ARG, AbsArch::FUNC_FLOAT_ARG_YTL, AbsArch::INDIRECT_BPR, AbsArch::INDIRECT_RETR, AbsArch::INDIRECT_SPR, AbsArch::INDIRECT_TMPR, AbsArch::INDIRECT_TMPR2, AbsArch::INDIRECT_TMPR3

Constants included from SSE

SSE::XMM0, SSE::XMM1, SSE::XMM2, SSE::XMM3, SSE::XMM4, SSE::XMM5, SSE::XMM6, SSE::XMM7

Instance Attribute Summary

Attributes included from ArrayTypeCommonCodeGen

#element_type

Instance Method Summary collapse

Methods included from ArrayTypeCommonCodeGen

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

Methods included from TypeUtil

#gen_copy_common

Methods included from CommonCodeGen

#dump_context, #gen_alloca, #gen_call, #gen_save_thepr

Instance Method Details

#copy_typeObject



334
335
336
337
338
339
# File 'lib/ytljit/vm_type_gen.rb', line 334

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

#gen_copy(context) ⇒ Object



330
331
332
# File 'lib/ytljit/vm_type_gen.rb', line 330

def gen_copy(context)
  gen_copy_common(context, 'rb_ary_dup')
end

#instanceObject



323
324
325
326
327
328
# File 'lib/ytljit/vm_type_gen.rb', line 323

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