Skip to content

Commit 5bbe559

Browse files
committed
remove usage of internal truffle class
1 parent da6ec39 commit 5bbe559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/DynamicObjectStorage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import com.oracle.graal.python.nodes.object.BuiltinClassProfiles.IsBuiltinObjectProfile;
5858
import com.oracle.graal.python.nodes.util.CastToTruffleStringNode;
5959
import com.oracle.graal.python.runtime.sequence.storage.MroSequenceStorage;
60+
import com.oracle.graal.python.util.PythonUtils;
6061
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
6162
import com.oracle.truffle.api.dsl.Bind;
6263
import com.oracle.truffle.api.dsl.Cached;
@@ -79,7 +80,6 @@
7980
import com.oracle.truffle.api.profiles.InlinedBranchProfile;
8081
import com.oracle.truffle.api.profiles.InlinedConditionProfile;
8182
import com.oracle.truffle.api.strings.TruffleString;
82-
import com.oracle.truffle.object.ShapeImpl;
8383

8484
/**
8585
* This storage keeps a reference to the MRO when used for a type dict. Writing to this storage will
@@ -124,7 +124,7 @@ protected static Object[] keyArray(DynamicObjectStorage self) {
124124
}
125125

126126
protected static Object[] keyArray(Shape shape) {
127-
return ((ShapeImpl) shape).getKeyArray();
127+
return shape.getKeyList().toArray();
128128
}
129129

130130
@GenerateUncached

0 commit comments

Comments
 (0)