Skip to content

Commit 84f49b9

Browse files
committed
style fixes
1 parent 55e232e commit 84f49b9

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/bytes/BytesBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public Object mul(VirtualFrame frame, PByteArray self, Object times,
444444
return factory().createByteArray(res);
445445
}
446446

447-
private int getTimesInt(VirtualFrame frame, Object times, ConditionProfile hasFrame, PythonObjectLibrary lib) {
447+
private static int getTimesInt(VirtualFrame frame, Object times, ConditionProfile hasFrame, PythonObjectLibrary lib) {
448448
if (hasFrame.profile(frame != null)) {
449449
return lib.asSizeWithState(times, PArguments.getThreadState(frame));
450450
} else {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str/StringBuiltins.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
import com.oracle.graal.python.nodes.function.builtins.PythonQuaternaryBuiltinNode;
107107
import com.oracle.graal.python.nodes.function.builtins.PythonTernaryBuiltinNode;
108108
import com.oracle.graal.python.nodes.function.builtins.PythonUnaryBuiltinNode;
109-
import com.oracle.graal.python.nodes.object.IsBuiltinClassProfile;
110109
import com.oracle.graal.python.nodes.subscript.GetItemNode;
111110
import com.oracle.graal.python.nodes.subscript.SliceLiteralNode.CastToSliceComponentNode;
112111
import com.oracle.graal.python.nodes.subscript.SliceLiteralNode.CoerceToIntSlice;
@@ -1533,8 +1532,7 @@ String doStringLong(String left, long right,
15331532
String doStringObject(VirtualFrame frame, String left, Object right,
15341533
@Cached("createBinaryProfile()") ConditionProfile hasFrame,
15351534
@Shared("loopProfile") @Cached("createCountingProfile()") LoopConditionProfile loopProfile,
1536-
@Shared("castToIndexNode") @CachedLibrary(limit = "getCallSiteInlineCacheMaxDepth()") PythonObjectLibrary lib,
1537-
@Cached IsBuiltinClassProfile typeErrorProfile) {
1535+
@Shared("castToIndexNode") @CachedLibrary(limit = "getCallSiteInlineCacheMaxDepth()") PythonObjectLibrary lib) {
15381536
int repeat;
15391537
if (hasFrame.profile(frame != null)) {
15401538
repeat = lib.asSizeWithState(right, PArguments.getThreadState(frame));
@@ -1549,10 +1547,9 @@ Object doGeneric(VirtualFrame frame, Object self, Object times,
15491547
@Shared("loopProfile") @Cached("createCountingProfile()") LoopConditionProfile loopProfile,
15501548
@Cached("createBinaryProfile()") ConditionProfile hasFrame,
15511549
@Cached CastToJavaStringCheckedNode castSelfNode,
1552-
@Shared("castToIndexNode") @CachedLibrary(limit = "getCallSiteInlineCacheMaxDepth()") PythonObjectLibrary lib,
1553-
@Cached IsBuiltinClassProfile typeErrorProfile) {
1550+
@Shared("castToIndexNode") @CachedLibrary(limit = "getCallSiteInlineCacheMaxDepth()") PythonObjectLibrary lib) {
15541551
String selfStr = castSelfNode.cast(self, INVALID_RECEIVER, "index", self);
1555-
return doStringObject(frame, selfStr, times, hasFrame, loopProfile, lib, typeErrorProfile);
1552+
return doStringObject(frame, selfStr, times, hasFrame, loopProfile, lib);
15561553
}
15571554

15581555
public String doStringIntGeneric(String left, int right, LoopConditionProfile loopProfile) {

0 commit comments

Comments
 (0)