Class: YTLJit::VM::Node::LocalVarNode
- Defined in:
- lib/ytljit/vm.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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from BaseNode
#code_space, #element_node_list, #id, #parent, #type
Instance Method Summary collapse
- #collect_candidate_type(context) ⇒ Object
- #compile(context) ⇒ Object
-
#initialize(parent, name, offset) ⇒ LocalVarNode
constructor
A new instance of LocalVarNode.
- #size ⇒ Object
Methods inherited from BaseNode
#add_element_node, #add_type, #collect_info, #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, offset) ⇒ LocalVarNode
Returns a new instance of LocalVarNode.
745 746 747 748 749 |
# File 'lib/ytljit/vm.rb', line 745 def initialize(parent, name, offset) super(parent) @name = name @offset = offset end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
751 752 753 |
# File 'lib/ytljit/vm.rb', line 751 def name @name end |
Instance Method Details
#collect_candidate_type(context) ⇒ Object
757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 |
# File 'lib/ytljit/vm.rb', line 757 def collect_candidate_type(context) flay = @parent.frame_layout fragstart = flay.size - @parent.argument_num if fragstart <= @offset then argoff = @offset - fragstart tobj = context.current_method_signature_node.last[argoff] if tobj then same_type(self, tobj, context.to_key, context.to_key(-2), context) same_type(tobj, self, context.to_key(-2), context.to_key, context) end end context end |
#compile(context) ⇒ Object
773 774 775 776 |
# File 'lib/ytljit/vm.rb', line 773 def compile(context) context = super(context) context end |
#size ⇒ Object
753 754 755 |
# File 'lib/ytljit/vm.rb', line 753 def size 8 end |