Skip to content

Commit ab0b376

Browse files
committed
made some itertools specializations static
1 parent 1d652c3 commit ab0b376

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/itertools/AccumulateBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static Object iter(PAccumulate self) {
9191
@GenerateNodeFactory
9292
public abstract static class NextNode extends PythonUnaryBuiltinNode {
9393
@Specialization
94-
Object next(VirtualFrame frame, PAccumulate self,
94+
static Object next(VirtualFrame frame, PAccumulate self,
9595
@Cached BuiltinFunctions.NextNode nextNode,
9696
@Cached BinaryArithmetic.AddNode addNode,
9797
@Cached CallNode callNode,

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/itertools/CompressBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static Object iter(PCompress self) {
8585
@GenerateNodeFactory
8686
public abstract static class NextNode extends PythonUnaryBuiltinNode {
8787
@Specialization
88-
Object next(VirtualFrame frame, PCompress self,
88+
static Object next(VirtualFrame frame, PCompress self,
8989
@Cached BuiltinFunctions.NextNode nextNode,
9090
@Cached PyObjectIsTrueNode isTrue,
9191
@Cached LoopConditionProfile loopConditionProfile) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/itertools/RepeatBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Object reduceNeg(PRepeat self,
148148
@GenerateNodeFactory
149149
public abstract static class ReprNode extends PythonUnaryBuiltinNode {
150150
@Specialization(guards = "self.getCnt() >= 0")
151-
Object reprPos(VirtualFrame frame, PRepeat self,
151+
static Object reprPos(VirtualFrame frame, PRepeat self,
152152
@Cached GetClassNode getClass,
153153
@Cached PyObjectGetAttr getAttrNode,
154154
@Cached PyObjectReprAsObjectNode reprNode,
@@ -165,7 +165,7 @@ Object reprPos(VirtualFrame frame, PRepeat self,
165165
}
166166

167167
@Specialization(guards = "self.getCnt() < 0")
168-
Object reprNeg(VirtualFrame frame, PRepeat self,
168+
static Object reprNeg(VirtualFrame frame, PRepeat self,
169169
@Cached GetClassNode getClass,
170170
@Cached PyObjectGetAttr getAttrNode,
171171
@Cached PyObjectReprAsObjectNode reprNode,

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/itertools/ZipLongestBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected boolean isNullFillValue(PZipLongest self) {
200200
@GenerateNodeFactory
201201
public abstract static class SetStateNode extends PythonBinaryBuiltinNode {
202202
@Specialization
203-
Object setState(PZipLongest self, Object state) {
203+
static Object setState(PZipLongest self, Object state) {
204204
self.setFillValue(state);
205205
return PNone.NONE;
206206
}

0 commit comments

Comments
 (0)