Module: YTLJit::VM::Node::MultipleCodeSpaceUtil
- Included in:
- ExceptionTopNode, LocalLabel, TopNode
- Defined in:
- lib/ytljit/vm.rb
Instance Method Summary collapse
- #add_cs_for_signature(sig) ⇒ Object
- #find_cs_by_signature(sig) ⇒ Object
- #get_code_space(sig) ⇒ Object
Instance Method Details
#add_cs_for_signature(sig) ⇒ Object
924 925 926 927 928 929 930 931 932 933 934 |
# File 'lib/ytljit/vm.rb', line 924 def add_cs_for_signature(sig) cs = find_cs_by_signature(sig) if cs then return nil else cs = CodeSpace.new @code_spaces.push [sig, cs] return cs end end |
#find_cs_by_signature(sig) ⇒ Object
914 915 916 917 918 919 920 921 922 |
# File 'lib/ytljit/vm.rb', line 914 def find_cs_by_signature(sig) @code_spaces.each do |csig, val| if csig == sig then return val end end nil end |