comparison graal/com.oracle.truffle.ruby.nodes/src/com/oracle/truffle/ruby/nodes/core/CoreMethodNodeManager.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 497fada09efb
children 64fa70319890
comparison
equal deleted inserted replaced
13705:ac5b0f31f7a2 13706:232eb6708943
174 174
175 final RubyNode methodNode = methodDetails.getNodeFactory().createNode(context, sourceSection, argumentsNodes.toArray(new RubyNode[argumentsNodes.size()])); 175 final RubyNode methodNode = methodDetails.getNodeFactory().createNode(context, sourceSection, argumentsNodes.toArray(new RubyNode[argumentsNodes.size()]));
176 final CheckArityNode checkArity = new CheckArityNode(context, sourceSection, arity); 176 final CheckArityNode checkArity = new CheckArityNode(context, sourceSection, arity);
177 final SequenceNode block = new SequenceNode(context, sourceSection, checkArity, methodNode); 177 final SequenceNode block = new SequenceNode(context, sourceSection, checkArity, methodNode);
178 178
179 return new RubyRootNode(sourceSection, methodDetails.getClassAnnotation().name() + "#" + methodDetails.getMethodAnnotation().names()[0] + "(core)", block); 179 return new RubyRootNode(sourceSection, null, methodDetails.getClassAnnotation().name() + "#" + methodDetails.getMethodAnnotation().names()[0] + "(core)", block);
180 } 180 }
181 181
182 public static class MethodDetails { 182 public static class MethodDetails {
183 183
184 private final CoreClass classAnnotation; 184 private final CoreClass classAnnotation;