49
49
import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
50
50
import com .oracle .graal .python .builtins .objects .PNone ;
51
51
import com .oracle .graal .python .builtins .objects .PythonAbstractObject ;
52
+ import com .oracle .graal .python .builtins .objects .cext .CExtNodes .AsPythonObjectNode ;
52
53
import com .oracle .graal .python .builtins .objects .cext .CExtNodes .ImportCAPISymbolNode ;
53
54
import com .oracle .graal .python .builtins .objects .cext .CExtNodes .PCallCapiFunction ;
54
55
import com .oracle .graal .python .builtins .objects .cext .CExtNodes .ToJavaNode ;
@@ -217,7 +218,7 @@ public static PythonAbstractClass getNativeClassCached(PythonAbstractNativeObjec
217
218
@ Specialization (replaces = {"getNativeClassCached" , "getNativeClassCachedIdentity" })
218
219
public static PythonAbstractClass getNativeClass (PythonAbstractNativeObject object ,
219
220
@ Exclusive @ Cached PCallCapiFunction callGetObTypeNode ,
220
- @ Exclusive @ Cached ToJavaNode toJavaNode ) {
221
+ @ Exclusive @ Cached AsPythonObjectNode toJavaNode ) {
221
222
// do not convert wrap 'object.object' since that is really the native pointer
222
223
// object
223
224
return (PythonAbstractClass ) toJavaNode .execute (callGetObTypeNode .call (FUN_GET_OB_TYPE , object .getPtr ()));
@@ -226,7 +227,7 @@ public static PythonAbstractClass getNativeClass(PythonAbstractNativeObject obje
226
227
public static PythonAbstractClass getNativeClassUncached (PythonAbstractNativeObject object ) {
227
228
// do not convert wrap 'object.object' since that is really the native pointer
228
229
// object
229
- return getNativeClass (object , PCallCapiFunction .getUncached (), ToJavaNode .getUncached ());
230
+ return getNativeClass (object , PCallCapiFunction .getUncached (), AsPythonObjectNode . getUncached () .getUncached ());
230
231
}
231
232
}
232
233
0 commit comments