|
75 | 75 | import com.oracle.graal.python.builtins.objects.function.PKeyword;
|
76 | 76 | import com.oracle.graal.python.builtins.objects.ints.PInt;
|
77 | 77 | import com.oracle.graal.python.builtins.objects.object.PythonObject;
|
| 78 | +import com.oracle.graal.python.builtins.objects.set.PSet; |
78 | 79 | import com.oracle.graal.python.builtins.objects.str.LazyString;
|
79 | 80 | import com.oracle.graal.python.builtins.objects.str.PString;
|
80 | 81 | import com.oracle.graal.python.builtins.objects.type.LazyPythonClass;
|
@@ -1496,11 +1497,21 @@ protected boolean doDynamicObjectString(@SuppressWarnings("unused") PDict contai
|
1496 | 1497 | return storage.remove(key, DEFAULT_EQIVALENCE);
|
1497 | 1498 | }
|
1498 | 1499 |
|
| 1500 | + @Specialization |
| 1501 | + protected boolean doDynamicObjectString(@SuppressWarnings("unused") PSet container, DynamicObjectStorage storage, String key) { |
| 1502 | + return storage.remove(key, DEFAULT_EQIVALENCE); |
| 1503 | + } |
| 1504 | + |
1499 | 1505 | @Specialization(guards = "wrappedString(key)")
|
1500 | 1506 | protected boolean doDynamicObjectPString(@SuppressWarnings("unused") PDict container, DynamicObjectStorage storage, PString key) {
|
1501 | 1507 | return storage.remove(key.getValue(), DEFAULT_EQIVALENCE);
|
1502 | 1508 | }
|
1503 | 1509 |
|
| 1510 | + @Specialization(guards = "wrappedString(key)") |
| 1511 | + protected boolean doDynamicObjectPString(@SuppressWarnings("unused") PSet container, DynamicObjectStorage storage, PString key) { |
| 1512 | + return storage.remove(key.getValue(), DEFAULT_EQIVALENCE); |
| 1513 | + } |
| 1514 | + |
1504 | 1515 | @SuppressWarnings("unused")
|
1505 | 1516 | @Specialization(guards = "!isJavaString(key)")
|
1506 | 1517 | protected boolean doDynamicObject(PHashingCollection container, DynamicObjectStorage storage, Object key) {
|
|
0 commit comments