Module: YTLJit::VM::TypeCodeGen::RangeTypeCommonCodeGen

Includes:
TypeUtil
Included in:
RangeTypeBoxedCodeGen, RangeTypeUnboxedCodeGen
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 collapse

Instance Method Summary collapse

Methods included from TypeUtil

#gen_copy_common

Methods included from CommonCodeGen

#dump_context, #gen_alloca, #gen_call, #gen_save_thepr

Instance Attribute Details

#argsObject

Returns the value of attribute args.



442
443
444
# File 'lib/ytljit/vm_type_gen.rb', line 442

def args
  @args
end

#element_typeObject

Returns the value of attribute element_type.



443
444
445
# File 'lib/ytljit/vm_type_gen.rb', line 443

def element_type
  @element_type
end

Instance Method Details

#==(other) ⇒ Object



453
454
455
456
457
# File 'lib/ytljit/vm_type_gen.rb', line 453

def ==(other)
  self.class == other.class and
#            @args == other.args and
    boxed == other.boxed
end

#have_element?Boolean

Returns:

  • (Boolean)


445
446
447
# File 'lib/ytljit/vm_type_gen.rb', line 445

def have_element?
  true
end

#initObject



437
438
439
440
# File 'lib/ytljit/vm_type_gen.rb', line 437

def init
  @args = nil
  @element_type = nil
end

#inspectObject



449
450
451
# File 'lib/ytljit/vm_type_gen.rb', line 449

def inspect
  "{ #{boxed ? "BOXED" : "UNBOXED"} #{@ruby_type} (#{@element_type.inspect})}"
end