Skip to content

Commit

Permalink
[Truffle] Adopt PrimitiveValueProfile API.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Oct 24, 2014
1 parent 7dddd03 commit 1fa1def
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 103 deletions.
101 changes: 0 additions & 101 deletions core/src/main/java/org/jruby/truffle/nodes/RubyValueProfile.java

This file was deleted.

Expand Up @@ -27,7 +27,7 @@ public class ReadPreArgumentNode extends RubyNode {
private final BranchProfile outOfRangeProfile = BranchProfile.create();
private final MissingArgumentBehaviour missingArgumentBehaviour;

private final RubyValueProfile argumentValueProfile = new RubyValueProfile();
private final ValueProfile argumentValueProfile = ValueProfile.createPrimitiveProfile();

public ReadPreArgumentNode(RubyContext context, SourceSection sourceSection, int index, MissingArgumentBehaviour missingArgumentBehaviour) {
super(context, sourceSection);
Expand Down
Expand Up @@ -13,12 +13,13 @@
import com.oracle.truffle.api.source.*;
import com.oracle.truffle.api.frame.*;
import com.oracle.truffle.api.nodes.*;
import com.oracle.truffle.api.utilities.ValueProfile;
import org.jruby.truffle.nodes.*;
import org.jruby.truffle.runtime.*;

public class SelfNode extends RubyNode {

private final RubyValueProfile valueProfile = new RubyValueProfile();
private final ValueProfile valueProfile = ValueProfile.createPrimitiveProfile();

public SelfNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
Expand Down

0 comments on commit 1fa1def

Please sign in to comment.