|
43 | 43 | import static com.oracle.graal.python.builtins.objects.type.slots.BuiltinSlotWrapperSignature.J_DOLLAR_SELF; |
44 | 44 | import static com.oracle.graal.python.nodes.SpecialMethodNames.J___SETATTR__; |
45 | 45 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___DELATTR__; |
46 | | -import static com.oracle.graal.python.nodes.SpecialMethodNames.T___DEL__; |
47 | 46 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___GETATTR__; |
48 | 47 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___SETATTR__; |
49 | | -import static com.oracle.graal.python.nodes.SpecialMethodNames.T___SET__; |
50 | 48 |
|
51 | 49 | import com.oracle.graal.python.PythonLanguage; |
52 | 50 | import com.oracle.graal.python.builtins.Python3Core; |
@@ -256,15 +254,15 @@ abstract static class CallNativeSlotSetAttrNode extends Node { |
256 | 254 | static void callNative(VirtualFrame frame, TpSlots slots, TpSlotNative slot, Object self, Object name, Object value, |
257 | 255 | @Bind("this") Node inliningTarget, |
258 | 256 | @Cached GetThreadStateNode getThreadStateNode, |
259 | | - @Cached InlinedConditionProfile isGetAttrProfile, |
| 257 | + @Cached InlinedConditionProfile isSetAttrProfile, |
260 | 258 | @Cached AsCharPointerNode asCharPointerNode, |
261 | 259 | @Cached FreeNode freeNode, |
262 | 260 | @Cached PythonToNativeNode nameToNativeNode, |
263 | 261 | @Cached PythonToNativeNode selfToNativeNode, |
264 | 262 | @Cached PythonToNativeNode valueToNativeNode, |
265 | 263 | @Cached ExternalFunctionInvokeNode externalInvokeNode, |
266 | 264 | @Cached CheckInquiryResultNode checkResultNode) { |
267 | | - boolean isSetAttr = isGetAttrProfile.profile(inliningTarget, slots.tp_setattr() == slot); |
| 265 | + boolean isSetAttr = isSetAttrProfile.profile(inliningTarget, slots.tp_setattr() == slot); |
268 | 266 | Object nameArg; |
269 | 267 | if (isSetAttr) { |
270 | 268 | nameArg = asCharPointerNode.execute(name); |
@@ -313,10 +311,10 @@ static void callPythonSimple(VirtualFrame frame, Node inliningTarget, TpSlotSetA |
313 | 311 | TruffleString funName; |
314 | 312 | if (callDel) { |
315 | 313 | callable = slot.getDelattr(); |
316 | | - funName = T___DEL__; |
| 314 | + funName = T___DELATTR__; |
317 | 315 | } else { |
318 | 316 | callable = slot.getSetattr(); |
319 | | - funName = T___SET__; |
| 317 | + funName = T___SETATTR__; |
320 | 318 | } |
321 | 319 | if (callable == null) { |
322 | 320 | throw raiseAttributeError(inliningTarget, raiseNode, funName); |
|
0 commit comments