Skip to content

Commit

Permalink
[Truffle] Remove the static modifier for BranchProfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 13, 2015
1 parent 0ec4804 commit 2247235
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2247235

Please sign in to comment.