File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/lib Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022, 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2022, 2025 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
41
41
package com .oracle .graal .python .lib ;
42
42
43
43
import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
44
- import com .oracle .graal .python .builtins .objects .cext .PythonAbstractNativeObject ;
45
44
import com .oracle .graal .python .builtins .objects .str .PString ;
46
45
import com .oracle .graal .python .nodes .PNodeWithContext ;
47
46
import com .oracle .graal .python .nodes .classes .IsSubtypeNode ;
@@ -79,16 +78,11 @@ static boolean doPString(@SuppressWarnings("unused") PString object) {
79
78
return true ;
80
79
}
81
80
82
- @ Specialization
83
- static boolean doNative (Node inliningTarget , PythonAbstractNativeObject object ,
81
+ @ Fallback
82
+ static boolean doOther (Node inliningTarget , Object object ,
84
83
@ Cached GetClassNode getClass ,
85
84
@ Cached (inline = false ) IsSubtypeNode isSubtype ) {
86
85
Object type = getClass .execute (inliningTarget , object );
87
86
return isSubtype .execute (type , PythonBuiltinClassType .PString );
88
87
}
89
-
90
- @ Fallback
91
- static boolean doOther (@ SuppressWarnings ("unused" ) Object object ) {
92
- return false ;
93
- }
94
88
}
You can’t perform that action at this time.
0 commit comments