Skip to content

Commit 3db2d89

Browse files
committed
Fix compilation errors after rebase
1 parent 7adbcab commit 3db2d89

File tree

1 file changed

+5
-5
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/deque

1 file changed

+5
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/deque/DequeBuiltins.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
import com.oracle.graal.python.nodes.function.builtins.PythonTernaryClinicBuiltinNode;
111111
import com.oracle.graal.python.nodes.function.builtins.PythonUnaryBuiltinNode;
112112
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentClinicProvider;
113+
import com.oracle.graal.python.nodes.object.GetClassNode;
113114
import com.oracle.graal.python.nodes.object.IsBuiltinClassProfile;
114115
import com.oracle.graal.python.nodes.util.CannotCastException;
115116
import com.oracle.graal.python.nodes.util.CastToJavaIntExactNode;
@@ -620,13 +621,12 @@ static PNone doLeft(PDeque self, int n) {
620621
return PNone.NONE;
621622
}
622623

623-
static PNone rotate(PDeque self, int n) {
624+
static void rotate(PDeque self, int n) {
624625
if (n < 0) {
625626
doLeft(self, n);
626627
} else {
627628
doRight(self, n);
628629
}
629-
return PNone.NONE;
630630
}
631631
}
632632

@@ -947,8 +947,7 @@ static Object repr(PDeque self) {
947947
Object[] items = self.data.toArray();
948948
PList asList = PythonObjectFactory.getUncached().createList(items);
949949
int maxLength = self.getMaxLength();
950-
PythonObjectLibrary selfLib = PythonObjectLibrary.getFactory().getUncached(self);
951-
StringBuilder sb = new StringBuilder(GetNameNode.getUncached().execute(selfLib.getLazyPythonClass(self)));
950+
StringBuilder sb = new StringBuilder(GetNameNode.getUncached().execute(GetClassNode.getUncached().execute(self)));
952951
sb.append('(').append(CastToJavaStringNode.getUncached().execute(PythonObjectLibrary.getUncached().asPString(asList)));
953952
if (maxLength != -1) {
954953
sb.append(", maxlen=").append(maxLength);
@@ -968,8 +967,9 @@ abstract static class DequeReduceNode extends PythonUnaryBuiltinNode {
968967
@Specialization(limit = "1")
969968
Object doGeneric(PDeque self,
970969
@CachedLibrary("self") PythonObjectLibrary lib,
970+
@Cached GetClassNode getClassNode,
971971
@Cached ConditionProfile profile) {
972-
Object clazz = getPythonClass(lib.getLazyPythonClass(self), profile);
972+
Object clazz = getPythonClass(getClassNode.execute(self), profile);
973973
Object dict = lib.hasDict(self) ? lib.getDict(self) : PNone.NONE;
974974
Object it = lib.getIterator(self);
975975
PTuple emptyTuple = factory().createEmptyTuple();

0 commit comments

Comments
 (0)