comparison graal/com.oracle.truffle.ruby.parser/src/com/oracle/truffle/ruby/parser/JRubyParser.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
148 break; 148 break;
149 default: 149 default:
150 throw new UnsupportedOperationException(); 150 throw new UnsupportedOperationException();
151 } 151 }
152 152
153 final RootNode root = new RubyRootNode(truffleNode.getSourceSection(), indicativeName, truffleNode); 153 final RootNode root = new RubyRootNode(truffleNode.getSourceSection(), environment.getFrameDescriptor(), indicativeName, truffleNode);
154 154
155 // Return the root and the frame descriptor 155 // Return the root and the frame descriptor
156 156 return new RubyParserResult(root);
157 return new RubyParserResult(root, environment.getFrameDescriptor());
158 } finally { 157 } finally {
159 if (debugManager != null) { 158 if (debugManager != null) {
160 debugManager.notifyFinishedLoading(source); 159 debugManager.notifyFinishedLoading(source);
161 } 160 }
162 } 161 }