Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temp.
Browse files Browse the repository at this point in the history
chrisseaton committed May 9, 2016
1 parent 205160a commit d3a74b0
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -30,6 +30,8 @@ public SequenceNode(RubyContext context, SourceSection sourceSection, RubyNode..
@ExplodeLoop
@Override
public Object execute(VirtualFrame frame) {
System.err.println("SequenceNode.execute " + System.identityHashCode(this));

for (int n = 0; n < body.length - 1; n++) {
body[n].executeVoid(frame);
}
@@ -40,9 +42,10 @@ public Object execute(VirtualFrame frame) {
@ExplodeLoop
@Override
public void executeVoid(VirtualFrame frame) {
for (int n = 0; n < body.length; n++) {
execute(frame);
/*for (int n = 0; n < body.length; n++) {
body[n].executeVoid(frame);
}
}*/
}

public RubyNode[] getSequence() {
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@
import com.oracle.truffle.api.source.Source;
import com.oracle.truffle.api.source.SourceSection;
import org.jruby.truffle.RubyContext;
import org.jruby.truffle.language.RubyNode;

import java.io.PrintStream;
import java.util.Arrays;
@@ -82,6 +83,9 @@ public ExecutionEventNode create(EventContext eventContext) {

@Override
protected void onEnter(VirtualFrame frame) {
final RubyNode rubyNode = (RubyNode) getParent().getParent().getParent().getParent();
System.err.println("coverage execution event node " + System.identityHashCode(this) + " for " + rubyNode.getClass() + " " + System.identityHashCode(rubyNode) + " " + getParent().getParent().getParent().getClass() + " " + getParent().getParent().getClass() + " " + getParent().getClass());

if (counters == null) {
CompilerDirectives.transferToInterpreterAndInvalidate();
final SourceSection sourceSection = getEncapsulatingSourceSection();

0 comments on commit d3a74b0

Please sign in to comment.