Skip to content

Commit ee13457

Browse files
thomaswuesteve-s
authored andcommitted
Avoid the accessor check if the slot is specialized, because it is not
necessary in that case.
1 parent bcc5ffe commit ee13457

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/nodes/bytecode_dsl/PBytecodeDSLRootNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,13 +3550,13 @@ static void doInteropException(AbstractTruffleException exception) {
35503550
@ConstantOperand(type = int.class)
35513551
public static final class CheckAndLoadLocal {
35523552

3553-
@Specialization(rewriteOn = UnexpectedResultException.class, guards = "!accessor.isCleared(bytecodeNode, frame)")
3553+
@Specialization(rewriteOn = UnexpectedResultException.class)
35543554
public static int doInt(VirtualFrame frame, LocalAccessor accessor, int index,
35553555
@Bind BytecodeNode bytecodeNode) throws UnexpectedResultException {
35563556
return accessor.getInt(bytecodeNode, frame);
35573557
}
35583558

3559-
@Specialization(rewriteOn = UnexpectedResultException.class, guards = "!accessor.isCleared(bytecodeNode, frame)")
3559+
@Specialization(rewriteOn = UnexpectedResultException.class)
35603560
public static boolean doBoolean(VirtualFrame frame, LocalAccessor accessor, int index,
35613561
@Bind BytecodeNode bytecodeNode) throws UnexpectedResultException {
35623562
return accessor.getBoolean(bytecodeNode, frame);

0 commit comments

Comments
 (0)