Skip to content

Commit 4235f68

Browse files
committed
Adapt to upstream changes after rebase
1 parent a109825 commit 4235f68

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/ExternalFunctionNodes.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,26 +2409,26 @@ protected static boolean isPythonNativeWrapper(Object object) {
24092409
@GenerateInline(false)
24102410
public abstract static class PyObjectCheckFunctionResultNode extends CheckFunctionResultNode {
24112411
@Specialization(guards = "!isForeignObject.execute(inliningTarget, result)")
2412-
static Object doPythonObject(PythonThreadState state, TruffleString name, @SuppressWarnings("unused") Object result,
2412+
static Object doPythonObject(PythonThreadState state, TruffleString name, Object result,
24132413
@Bind("this") Node inliningTarget,
2414-
@Shared @Cached IsForeignObjectNode isForeignObject,
2414+
@SuppressWarnings("unused") @Shared @Cached IsForeignObjectNode isForeignObject,
24152415
@Shared @Cached InlinedConditionProfile indicatesErrorProfile,
2416-
@Shared @Cached InlinedConditionProfile errOccurredProfile) {
2416+
@Shared @Cached TransformExceptionFromNativeNode transformExceptionFromNativeNode) {
24172417
boolean indicatesError = indicatesErrorProfile.profile(inliningTarget, PGuards.isNoValue(result));
2418-
DefaultCheckFunctionResultNode.checkFunctionResult(inliningTarget, name, indicatesError, true, state, errOccurredProfile);
2418+
transformExceptionFromNativeNode.execute(inliningTarget, state, name, indicatesError, true);
24192419
assert !indicatesError; // otherwise we should not reach here
24202420
return result;
24212421
}
24222422

24232423
@Specialization(guards = "isForeignObject.execute(inliningTarget, result)")
24242424
static Object doForeign(PythonThreadState state, TruffleString name, Object result,
24252425
@Bind("this") Node inliningTarget,
2426-
@Shared @Cached IsForeignObjectNode isForeignObject,
2426+
@SuppressWarnings("unused") @Shared @Cached IsForeignObjectNode isForeignObject,
24272427
@Shared @Cached InlinedConditionProfile indicatesErrorProfile,
2428-
@Shared @Cached InlinedConditionProfile errOccurredProfile,
2428+
@Shared @Cached TransformExceptionFromNativeNode transformExceptionFromNativeNode,
24292429
@CachedLibrary(limit = "3") InteropLibrary lib) {
24302430
boolean indicatesError = indicatesErrorProfile.profile(inliningTarget, lib.isNull(result));
2431-
DefaultCheckFunctionResultNode.checkFunctionResult(inliningTarget, name, indicatesError, true, state, errOccurredProfile);
2431+
transformExceptionFromNativeNode.execute(inliningTarget, state, name, indicatesError, true);
24322432
assert !indicatesError; // otherwise we should not reach here
24332433
return result;
24342434
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/slots/TpSlotDescrGet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static Object callNative(VirtualFrame frame, Node inliningTarget, TpSlotNative s
164164
// Within GraalPy we use PNone.NONE as indication that the descriptor was found on the
165165
// target object itself, for native code this marker is 'NULL' (NO_VALUE maps to NULL)
166166
Object objArg = obj == PNone.NONE ? PNone.NO_VALUE : obj;
167-
Object result = externalInvokeNode.call(frame, inliningTarget, ctx, threadState, C_API_TIMING, T___GET__, slot.callable, //
167+
Object result = externalInvokeNode.call(frame, inliningTarget, threadState, C_API_TIMING, T___GET__, slot.callable, //
168168
selfToNativeNode.execute(self), //
169169
objToNativeNode.execute(objArg), //
170170
valueToNativeNode.execute(value));

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/slots/TpSlotDescrSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static void callNative(VirtualFrame frame, Node inliningTarget, TpSlotNative slo
199199
@Cached(inline = false) InitCheckFunctionResultNode checkResultNode) {
200200
PythonContext ctx = PythonContext.get(inliningTarget);
201201
PythonThreadState threadState = getThreadStateNode.execute(inliningTarget, ctx);
202-
Object result = externalInvokeNode.call(frame, inliningTarget, ctx, threadState, C_API_TIMING, T___SET__, slot.callable, //
202+
Object result = externalInvokeNode.call(frame, inliningTarget, threadState, C_API_TIMING, T___SET__, slot.callable, //
203203
selfToNativeNode.execute(self), //
204204
objToNativeNode.execute(obj), //
205205
valueToNativeNode.execute(value));

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/slots/TpSlotInquiry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static boolean callNative(VirtualFrame frame, Node inliningTarget, TpSlotNative
135135
@Cached(inline = false) CheckInquiryResultNode checkResultNode) {
136136
PythonContext ctx = PythonContext.get(inliningTarget);
137137
PythonThreadState threadState = getThreadStateNode.execute(inliningTarget, ctx);
138-
Object result = externalInvokeNode.call(frame, inliningTarget, ctx, threadState, C_API_TIMING, T___BOOL__, slot.callable, toNativeNode.execute(self));
138+
Object result = externalInvokeNode.call(frame, inliningTarget, threadState, C_API_TIMING, T___BOOL__, slot.callable, toNativeNode.execute(self));
139139
return checkResultNode.executeBool(threadState, T___BOOL__, result);
140140
}
141141
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/slots/TpSlotLen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static int callNative(VirtualFrame frame, Node inliningTarget, TpSlotNative slot
147147
@Cached(inline = false) CheckPrimitiveFunctionResultNode checkResultNode) {
148148
PythonContext ctx = PythonContext.get(inliningTarget);
149149
PythonThreadState state = getThreadStateNode.execute(inliningTarget, ctx);
150-
Object result = externalInvokeNode.call(frame, inliningTarget, ctx, state, C_API_TIMING, T___LEN__, slot.callable, toNativeNode.execute(self));
150+
Object result = externalInvokeNode.call(frame, inliningTarget, state, C_API_TIMING, T___LEN__, slot.callable, toNativeNode.execute(self));
151151
long l = checkResultNode.executeLong(state, T___LEN__, result);
152152
if (l != (int) l) {
153153
throw raiseNode.get(inliningTarget).raise(OverflowError, ErrorMessages.CANNOT_FIT_P_INTO_INDEXSIZED_INT, l);

0 commit comments

Comments
 (0)