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

Includes:
AbsArch
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

Constants included from SSE

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#element_typeObject

Returns the value of attribute element_type.



133
134
135
# File 'lib/ytljit/vm_type_gen.rb', line 133

def element_type
  @element_type
end

Instance Method Details

#==(other) ⇒ Object



144
145
146
147
148
# File 'lib/ytljit/vm_type_gen.rb', line 144

def ==(other)
  other.is_a?(self.class) and
  self.class == other.class and
  @element_type == other.element_type
end

#gen_copy(context) ⇒ Object



139
140
141
142
# File 'lib/ytljit/vm_type_gen.rb', line 139

def gen_copy(context)
  p "copy"
  context
end

#have_element?Boolean

Returns:

  • (Boolean)


135
136
137
# File 'lib/ytljit/vm_type_gen.rb', line 135

def have_element?
  true
end

#initObject



129
130
131
# File 'lib/ytljit/vm_type_gen.rb', line 129

def init
  @element_type = nil
end

#instanceObject



122
123
124
125
126
127
# File 'lib/ytljit/vm_type_gen.rb', line 122

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