Skip to content

Commit 193f1b7

Browse files
committed
removed redundant instanceof TruffleString from LocalsStorage
1 parent 66a51ee commit 193f1b7

File tree

1 file changed

+4
-6
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,10 @@ static HashingStorage cached(LocalsStorage self, HashingStorage other,
254254
HashingStorage result = other;
255255
for (int slot = 0; slot < desc.getNumberOfSlots(); slot++) {
256256
Object identifier = desc.getSlotName(slot);
257-
if (identifier instanceof TruffleString) {
258-
if (isUserFrameSlot(identifier)) {
259-
Object value = self.getValue(slot);
260-
if (value != null) {
261-
result = lib.setItem(result, desc.getSlotName(slot), value);
262-
}
257+
if (isUserFrameSlot(identifier)) {
258+
Object value = self.getValue(slot);
259+
if (value != null) {
260+
result = lib.setItem(result, desc.getSlotName(slot), value);
263261
}
264262
}
265263
}

0 commit comments

Comments
 (0)