59
59
import com .oracle .graal .python .builtins .objects .cext .PythonNativeVoidPtr ;
60
60
import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodes .AsCharPointerNode ;
61
61
import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodes .AsNativeComplexNode ;
62
+ import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodes .PCallCapiFunction ;
62
63
import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodes .PRaiseNativeNode ;
63
64
import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodes .ToSulongNode ;
64
65
import com .oracle .graal .python .builtins .objects .cext .capi .CExtNodesFactory .TransformExceptionToNativeNodeGen ;
65
66
import com .oracle .graal .python .builtins .objects .cext .capi .NativeCAPISymbol ;
66
67
import com .oracle .graal .python .builtins .objects .cext .capi .transitions .CApiTransitions .NativeToPythonNode ;
67
68
import com .oracle .graal .python .builtins .objects .cext .common .CExtCommonNodes .AsNativeDoubleNode ;
68
69
import com .oracle .graal .python .builtins .objects .cext .common .CExtCommonNodes .AsNativePrimitiveNode ;
69
- import com .oracle .graal .python .builtins .objects .cext .common .CExtCommonNodes .PCallCExtFunction ;
70
70
import com .oracle .graal .python .builtins .objects .cext .common .CExtParseArgumentsNodeFactory .ConvertSingleArgNodeGen ;
71
71
import com .oracle .graal .python .builtins .objects .common .HashingStorageNodes .HashingStorageLen ;
72
72
import com .oracle .graal .python .builtins .objects .common .SequenceNodes ;
@@ -619,7 +619,7 @@ abstract static class ConvertArgNode extends Node {
619
619
@ Specialization (guards = "c == FORMAT_LOWER_Y" )
620
620
void doBufferR (@ SuppressWarnings ("unused" ) int c , int la , Object arg , Object varargs ,
621
621
@ Cached GetNextVaArgNode getVaArgNode ,
622
- @ Cached PCallCExtFunction callGetBufferRwNode ,
622
+ @ Cached PCallCapiFunction callGetBufferRwNode ,
623
623
@ Shared ("writeOutVarNode" ) @ Cached WriteNextVaArgNode writeOutVarNode ,
624
624
@ Cached ToSulongNode argToSulongNode ,
625
625
@ Shared ("raiseNode" ) @ Cached PRaiseNativeNode raiseNode ) throws InteropException {
@@ -712,7 +712,7 @@ static void doObject(@SuppressWarnings("unused") int c, int la, Object arg, Obje
712
712
@ Specialization (guards = "c == FORMAT_LOWER_W" )
713
713
void doBufferRW (@ SuppressWarnings ("unused" ) int c , int la , Object arg , Object varargs ,
714
714
@ Cached GetNextVaArgNode getVaArgNode ,
715
- @ Cached PCallCExtFunction callGetBufferRwNode ,
715
+ @ Cached PCallCapiFunction callGetBufferRwNode ,
716
716
@ Cached ToSulongNode toNativeNode ,
717
717
@ Shared ("raiseNode" ) @ Cached PRaiseNativeNode raiseNode ) throws InteropException , ParseArgumentsException {
718
718
if (la != '*' ) {
@@ -723,7 +723,7 @@ void doBufferRW(@SuppressWarnings("unused") int c, int la, Object arg, Object va
723
723
getbuffer (callGetBufferRwNode , raiseNode , arg , toNativeNode , pybufferPtr , false );
724
724
}
725
725
726
- private void getbuffer (PCallCExtFunction callGetBufferRwNode , PRaiseNativeNode raiseNode , Object arg , CExtToNativeNode toSulongNode , Object pybufferPtr , boolean readOnly )
726
+ private void getbuffer (PCallCapiFunction callGetBufferRwNode , PRaiseNativeNode raiseNode , Object arg , CExtToNativeNode toSulongNode , Object pybufferPtr , boolean readOnly )
727
727
throws ParseArgumentsException {
728
728
NativeCAPISymbol funSymbol = readOnly ? FUN_GET_BUFFER_R : FUN_GET_BUFFER_RW ;
729
729
Object rc = callGetBufferRwNode .call (PythonContext .get (this ).getCApiContext (), funSymbol , toSulongNode .execute (arg ), pybufferPtr );
@@ -745,7 +745,7 @@ private static ParseArgumentsException converterr(PRaiseNativeNode raiseNode, Tr
745
745
throw raise (raiseNode , TypeError , ErrorMessages .MUST_BE_S_NOT_P , msg , arg );
746
746
}
747
747
748
- private int convertbuffer (PCallCExtFunction callConvertbuffer , PRaiseNativeNode raiseNode , Object arg , CExtToNativeNode toSulong , Object voidPtr ) {
748
+ private int convertbuffer (PCallCapiFunction callConvertbuffer , PRaiseNativeNode raiseNode , Object arg , CExtToNativeNode toSulong , Object voidPtr ) {
749
749
Object rc = callConvertbuffer .call (PythonContext .get (this ).getCApiContext (), FUN_CONVERTBUFFER , toSulong .execute (arg ), voidPtr );
750
750
if (!(rc instanceof Number )) {
751
751
throw CompilerDirectives .shouldNotReachHere ("wrong result of internal function" );
@@ -912,7 +912,7 @@ Object doGeneric(ParserState state, Object kwds, Object kwdnames, boolean keywor
912
912
@ Shared ("getItemNode" ) @ Cached PyTuple_GetItem getItemNode ,
913
913
@ CachedLibrary (limit = "1" ) InteropLibrary kwdnamesLib ,
914
914
@ Cached PyDict_GetItem getDictItemNode ,
915
- @ Cached PCallCExtFunction callCStringToString ,
915
+ @ Cached PCallCapiFunction callCStringToString ,
916
916
@ Shared ("raiseNode" ) @ Cached PRaiseNativeNode raiseNode ) throws InteropException {
917
917
918
918
Object out = null ;
0 commit comments