Module: YTLJit::VM::TypeCodeGen::YTLJitRuntimeThreadTypeBoxedCodeGen

Includes:
TypeUtil
Defined in:
lib/ytl/thread.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#element_typeObject

Returns the value of attribute element_type.



17
18
19
# File 'lib/ytl/thread.rb', line 17

def element_type
  @element_type
end

Instance Method Details

#gen_copy(context) ⇒ Object



19
20
21
# File 'lib/ytl/thread.rb', line 19

def gen_copy(context)
  context
end

#have_element?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ytl/thread.rb', line 23

def have_element?
  true
end

#initObject



13
14
15
# File 'lib/ytl/thread.rb', line 13

def init
  @element_type = nil
end

#inspectObject



27
28
29
# File 'lib/ytl/thread.rb', line 27

def inspect
  "{#{@ruby_type} self=#{@element_type.inspect}}"
end

#instanceObject



6
7
8
9
10
11
# File 'lib/ytl/thread.rb', line 6

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