Skip to content
Permalink
Browse files
[Truffle] Adopt PrimitiveValueProfile API.
  • Loading branch information
chrisseaton committed Oct 24, 2014
1 parent 7dddd03 commit 1fa1deffd944c1ceb1362380249a70003d7fa838
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 103 deletions.

This file was deleted.

@@ -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);
@@ -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);

0 comments on commit 1fa1def

Please sign in to comment.