Class: YTLJit::VM::Node::InstanceVarAssignNode
- Inherits:
-
InstanceVarRefCommonNode
- Object
- BaseNode
- VariableRefCommonNode
- InstanceVarRefCommonNode
- YTLJit::VM::Node::InstanceVarAssignNode
- Includes:
- HaveChildlenMixin
- Defined in:
- lib/ytljit/vm.rb
Direct Known Subclasses
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
Attributes included from HaveChildlenMixin
Attributes inherited from BaseNode
#code_space, #element_node_list, #id, #parent, #type
Instance Method Summary collapse
- #collect_candidate_type(context) ⇒ Object
- #collect_info(context) ⇒ Object
- #compile(context) ⇒ Object
- #compile_main(context) ⇒ Object
-
#initialize(parent, name, val) ⇒ InstanceVarAssignNode
constructor
A new instance of InstanceVarAssignNode.
- #traverse_childlen {|@val| ... } ⇒ Object
Methods included from NodeUtil
#search_class_top, #search_end, #search_frame_info, #search_top
Methods inherited from BaseNode
#add_element_node, #add_type, #decide_type, #decide_type_core, #decide_type_once, #gen_type_inference_proc, #inference_type, #merge_type, #same_type, #set_type_list, #ti_add_observer, #ti_changed, #ti_update, #type_list
Methods included from Inspect
Constructor Details
#initialize(parent, name, val) ⇒ InstanceVarAssignNode
Returns a new instance of InstanceVarAssignNode.
1630 1631 1632 1633 1634 |
# File 'lib/ytljit/vm.rb', line 1630 def initialize(parent, name, val) super(parent, name) val.parent = self @val = val end |
Instance Method Details
#collect_candidate_type(context) ⇒ Object
1647 1648 1649 1650 1651 1652 |
# File 'lib/ytljit/vm.rb', line 1647 def collect_candidate_type(context) context = @val.collect_candidate_type(context) same_type(self, @val, context.to_key, context.to_key, context) @body.collect_candidate_type(context) end |
#collect_info(context) ⇒ Object
1641 1642 1643 1644 1645 |
# File 'lib/ytljit/vm.rb', line 1641 def collect_info(context) context = @val.collect_info(context) context.modified_instance_var[@name] = [self] @body.collect_info(context) end |
#compile(context) ⇒ Object
1658 1659 1660 1661 |
# File 'lib/ytljit/vm.rb', line 1658 def compile(context) context = super(context) compile_main(context) end |
#compile_main(context) ⇒ Object
1654 1655 1656 |
# File 'lib/ytljit/vm.rb', line 1654 def compile_main(context) context end |
#traverse_childlen {|@val| ... } ⇒ Object
1636 1637 1638 1639 |
# File 'lib/ytljit/vm.rb', line 1636 def traverse_childlen yield @val yield @body end |