Module: YTLJit::VM::TypeCodeGen::DefaultTypeCodeGen

Included in:
RubyType::DefaultType0, RubyType::RubyTypeBoxed, RubyType::RubyTypeUnboxed
Defined in:
lib/ytljit/vm_type_gen.rb

Instance Method Summary collapse

Instance Method Details

#gen_boxing(context) ⇒ Object



16
17
18
# File 'lib/ytljit/vm_type_gen.rb', line 16

def gen_boxing(context)
  context
end

#gen_copy(context) ⇒ Object



24
25
26
# File 'lib/ytljit/vm_type_gen.rb', line 24

def gen_copy(context)
  context
end

#gen_unboxing(context) ⇒ Object



20
21
22
# File 'lib/ytljit/vm_type_gen.rb', line 20

def gen_unboxing(context)
  context
end

#have_element?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/ytljit/vm_type_gen.rb', line 12

def have_element?
  false
end

#init_typeObject



9
10
# File 'lib/ytljit/vm_type_gen.rb', line 9

def init_type
end

#inspectObject



28
29
30
# File 'lib/ytljit/vm_type_gen.rb', line 28

def inspect
  "{ #{boxed ? "BOXED" : "UNBOXED"} #{@ruby_type}}"
end

#instanceObject



5
6
7
# File 'lib/ytljit/vm_type_gen.rb', line 5

def instance
  self
end