Skip to content

Commit

Permalink
[Truffle] Format binding method.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Sep 29, 2014
1 parent 60d8a86 commit 7d40f85
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/src/main/java/org/jruby/truffle/nodes/core/KernelNodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,16 @@ public BindingNode(BindingNode prev) {
}

@Specialization
public Object binding(VirtualFrame frame, Object self) {
public Object binding(Object self) {
notDesignedForCompilation();

return new RubyBinding(getContext().getCoreLibrary().getBindingClass(), self, Truffle.getRuntime().getCallerFrame().getFrame(FrameInstance.FrameAccess.MATERIALIZE, false).materialize());
final MaterializedFrame callerFrame = Truffle.getRuntime().getCallerFrame()
.getFrame(FrameInstance.FrameAccess.MATERIALIZE, false).materialize();

return new RubyBinding(
getContext().getCoreLibrary().getBindingClass(),
self,
callerFrame);
}
}

Expand Down

0 comments on commit 7d40f85

Please sign in to comment.