Skip to content

Commit

Permalink
Name StringByteIndexPrimitiveNode specializations consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Lillian Zhang committed Jun 22, 2021
1 parent 3252693 commit b964e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/truffleruby/core/string/StringNodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -4500,7 +4500,7 @@ protected Object stringByteIndexPatternTooLarge(Rope stringRope, Rope patternRop
"offset >= 0",
"singleByteOptimizableNode.execute(stringRope)",
"patternRope.byteLength() <= stringRope.byteLength()" })
protected Object stringCharacterIndexSingleByteOptimizable(Rope stringRope, Rope patternRope, int offset,
protected Object stringByteIndexSingleByteOptimizable(Rope stringRope, Rope patternRope, int offset,
@Cached RopeNodes.BytesNode stringBytesNode,
@Cached RopeNodes.BytesNode patternBytesNode,
@Cached LoopConditionProfile loopProfile,
Expand Down Expand Up @@ -4533,7 +4533,7 @@ protected Object stringCharacterIndexSingleByteOptimizable(Rope stringRope, Rope
"offset >= 0",
"!singleByteOptimizableNode.execute(stringRope)",
"patternRope.byteLength() <= stringRope.byteLength()" })
protected Object stringCharacterIndex(Rope stringRope, Rope patternRope, int offset,
protected Object stringByteIndex(Rope stringRope, Rope patternRope, int offset,
@Cached RopeNodes.CalculateCharacterLengthNode calculateCharacterLengthNode,
@Cached RopeNodes.BytesNode stringBytesNode,
@Cached RopeNodes.BytesNode patternBytesNode) {
Expand Down

0 comments on commit b964e28

Please sign in to comment.