|
74 | 74 | import com.oracle.graal.python.builtins.objects.function.PKeyword;
|
75 | 75 | import com.oracle.graal.python.builtins.objects.ints.PInt;
|
76 | 76 | import com.oracle.graal.python.builtins.objects.object.PythonObject;
|
| 77 | +import com.oracle.graal.python.builtins.objects.set.PSet; |
77 | 78 | import com.oracle.graal.python.builtins.objects.str.PString;
|
78 | 79 | import com.oracle.graal.python.builtins.objects.type.LazyPythonClass;
|
79 | 80 | import com.oracle.graal.python.nodes.PGuards;
|
@@ -1320,11 +1321,21 @@ protected boolean doDynamicObjectString(@SuppressWarnings("unused") PDict contai
|
1320 | 1321 | return storage.remove(key, DEFAULT_EQIVALENCE);
|
1321 | 1322 | }
|
1322 | 1323 |
|
| 1324 | + @Specialization |
| 1325 | + protected boolean doDynamicObjectString(@SuppressWarnings("unused") PSet container, DynamicObjectStorage storage, String key) { |
| 1326 | + return storage.remove(key, DEFAULT_EQIVALENCE); |
| 1327 | + } |
| 1328 | + |
1323 | 1329 | @Specialization(guards = "wrappedString(key)")
|
1324 | 1330 | protected boolean doDynamicObjectPString(@SuppressWarnings("unused") PDict container, DynamicObjectStorage storage, PString key) {
|
1325 | 1331 | return storage.remove(key.getValue(), DEFAULT_EQIVALENCE);
|
1326 | 1332 | }
|
1327 | 1333 |
|
| 1334 | + @Specialization(guards = "wrappedString(key)") |
| 1335 | + protected boolean doDynamicObjectPString(@SuppressWarnings("unused") PSet container, DynamicObjectStorage storage, PString key) { |
| 1336 | + return storage.remove(key.getValue(), DEFAULT_EQIVALENCE); |
| 1337 | + } |
| 1338 | + |
1328 | 1339 | @SuppressWarnings("unused")
|
1329 | 1340 | @Specialization(guards = "!isJavaString(key)")
|
1330 | 1341 | protected boolean doDynamicObject(PHashingCollection container, DynamicObjectStorage storage, Object key) {
|
|
0 commit comments