Skip to content

Commit

Permalink
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -32,8 +32,8 @@ public class LazyRubyRootNode extends RootNode {
@Child private Node findContextNode;
@Child private DirectCallNode callNode;

public LazyRubyRootNode(Class<? extends TruffleLanguage> language, SourceSection sourceSection, FrameDescriptor frameDescriptor, Source source) {
super(language, sourceSection, frameDescriptor);
public LazyRubyRootNode(SourceSection sourceSection, FrameDescriptor frameDescriptor, Source source) {
super(RubyLanguage.class, sourceSection, frameDescriptor);
this.source = source;
}

Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.source.SourceSection;
import org.jruby.truffle.runtime.RubyContext;
import org.jruby.truffle.runtime.RubyLanguage;
import org.jruby.truffle.runtime.methods.SharedMethodInfo;

/**
@@ -37,7 +38,7 @@ public RubyRootNode(RubyContext context, SourceSection sourceSection, FrameDescr
}

public RubyRootNode(RubyContext context, SourceSection sourceSection, FrameDescriptor frameDescriptor, SharedMethodInfo sharedMethodInfo, RubyNode body, boolean needsDeclarationFrame) {
super(sourceSection, frameDescriptor);
super(RubyLanguage.class, sourceSection, frameDescriptor);
assert body != null;
this.context = context;
this.body = body;
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ public RubyContext createContext(Env env) {

@Override
protected CallTarget parse(Source source, Node node, String... strings) throws IOException {
return Truffle.getRuntime().createCallTarget(new LazyRubyRootNode(getClass(), null, null, source));
return Truffle.getRuntime().createCallTarget(new LazyRubyRootNode(null, null, source));
}

@Override

0 comments on commit ece04ea

Please sign in to comment.