Skip to content
Permalink
Browse files
[Truffle] Remove the static modifier for BranchProfile.
  • Loading branch information
eregon committed Jan 13, 2015
1 parent 0ec4804 commit 2247235ac8397d1148040e3c68a002046f4244d1
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1325,8 +1325,8 @@ public Object deleteObject(VirtualFrame frame, RubyArray array, Object value) {
@CoreMethod(names = "delete_at", required = 1)
public abstract static class DeleteAtNode extends ArrayCoreMethodNode {

private static final BranchProfile tooSmallBranch = BranchProfile.create();
private static final BranchProfile beyondEndBranch = BranchProfile.create();
private final BranchProfile tooSmallBranch = BranchProfile.create();
private final BranchProfile beyondEndBranch = BranchProfile.create();

public DeleteAtNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
@@ -1968,7 +1968,7 @@ public Object inject(VirtualFrame frame, RubyArray array, RubySymbol symbol, Und
@CoreMethod(names = "insert", required = 2)
public abstract static class InsertNode extends ArrayCoreMethodNode {

private static final BranchProfile tooSmallBranch = BranchProfile.create();
private final BranchProfile tooSmallBranch = BranchProfile.create();

public InsertNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);

0 comments on commit 2247235

Please sign in to comment.