comparison graal/com.oracle.truffle.ruby.nodes/src/com/oracle/truffle/ruby/nodes/RubyRootNode.java @ 13706:232eb6708943

Ruby: required fixes for moving FrameDescriptor to the RootNode.
author Christian Humer <christian.humer@gmail.com>
date Mon, 20 Jan 2014 13:44:54 +0100
parents 0fbee3eb71f0
children
comparison
equal deleted inserted replaced
13705:ac5b0f31f7a2 13706:232eb6708943
20 public class RubyRootNode extends RootNode { 20 public class RubyRootNode extends RootNode {
21 21
22 protected final String indicativeName; 22 protected final String indicativeName;
23 @Child protected RubyNode body; 23 @Child protected RubyNode body;
24 24
25 public RubyRootNode(SourceSection sourceSection, String indicativeName, RubyNode body) { 25 public RubyRootNode(SourceSection sourceSection, FrameDescriptor descriptor, String indicativeName, RubyNode body) {
26 super(sourceSection); 26 super(sourceSection, descriptor);
27 27
28 assert indicativeName != null; 28 assert indicativeName != null;
29 assert body != null; 29 assert body != null;
30 30
31 this.body = adoptChild(body); 31 this.body = adoptChild(body);