Class: YTLJit::VM::Node::SendNewArenaNode
- Inherits:
-
SendNewNode
- Object
- SendNewNode
- YTLJit::VM::Node::SendNewArenaNode
- Defined in:
- lib/ytl/accmem.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#collect_candidate_type_regident(context, slf) ⇒ Object
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 |
# File 'lib/ytl/accmem.rb', line 444 def collect_candidate_type_regident(context, slf) slfcls = @arguments[2].get_constant_value tt = RubyType::BaseType.from_ruby_class(slfcls[0]) if tt.ruby_type == Runtime::Arena then add_type(context.to_signature, tt) if @initmethod.is_a?(SendInitializeNode) then # Get alloc method call node @initmethod = @initmethod.arguments[2] end return context end return super end |
#traverse_childlen {|@func| ... } ⇒ Object
436 437 438 439 440 441 442 |
# File 'lib/ytl/accmem.rb', line 436 def traverse_childlen @arguments.each do |arg| yield arg end yield @func yield @body end |