Skip to content

Commit c68666e

Browse files
committed
add missing inserts
1 parent b46b62f commit c68666e

File tree

1 file changed

+7
-7
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/superobject

1 file changed

+7
-7
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/superobject/SuperBuiltins.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,31 +234,31 @@ PNone initFallback(Object self, Object cls, Object obj) {
234234
private IsSubtypeNode getIsSubtype() {
235235
if (isSubtypeNode == null) {
236236
CompilerDirectives.transferToInterpreterAndInvalidate();
237-
isSubtypeNode = IsSubtypeNode.create();
237+
isSubtypeNode = insert(IsSubtypeNode.create());
238238
}
239239
return isSubtypeNode;
240240
}
241241

242242
private IsInstanceNode getIsInstance() {
243243
if (isInstanceNode == null) {
244244
CompilerDirectives.transferToInterpreterAndInvalidate();
245-
isInstanceNode = IsInstanceNode.create();
245+
isInstanceNode = insert(IsInstanceNode.create());
246246
}
247247
return isInstanceNode;
248248
}
249249

250250
private GetClassNode getGetClass() {
251251
if (getClassNode == null) {
252252
CompilerDirectives.transferToInterpreterAndInvalidate();
253-
getClassNode = GetClassNode.create();
253+
getClassNode = insert(GetClassNode.create());
254254
}
255255
return getClassNode;
256256
}
257257

258258
private LookupAndCallBinaryNode getGetAttr() {
259259
if (getAttrNode == null) {
260260
CompilerDirectives.transferToInterpreterAndInvalidate();
261-
getAttrNode = LookupAndCallBinaryNode.create(SpecialMethodNames.__GETATTRIBUTE__);
261+
getAttrNode = insert(LookupAndCallBinaryNode.create(SpecialMethodNames.__GETATTRIBUTE__));
262262
}
263263
return getAttrNode;
264264
}
@@ -317,7 +317,7 @@ public Object get(SuperObject self, Object obj, @SuppressWarnings("unused") Obje
317317
} else {
318318
if (superInit == null) {
319319
CompilerDirectives.transferToInterpreterAndInvalidate();
320-
superInit = SuperInitNodeFactory.create();
320+
superInit = insert(SuperInitNodeFactory.create());
321321
}
322322
SuperObject newSuper = factory().createSuperObject(self.getPythonClass());
323323
superInit.execute(null, newSuper, self.getType(), obj);
@@ -337,15 +337,15 @@ public abstract static class ReprNode extends PythonBinaryBuiltinNode {
337337
private Object genericGetAttr(Object object, Object attr) {
338338
if (getAttr == null) {
339339
CompilerDirectives.transferToInterpreterAndInvalidate();
340-
getAttr = LookupAndCallBinaryNode.create(SpecialMethodNames.__GETATTRIBUTE__);
340+
getAttr = insert(LookupAndCallBinaryNode.create(SpecialMethodNames.__GETATTRIBUTE__));
341341
}
342342
return getAttr.executeObject(object, attr);
343343
}
344344

345345
private CallTernaryMethodNode getCallGet() {
346346
if (callGet == null) {
347347
CompilerDirectives.transferToInterpreterAndInvalidate();
348-
callGet = CallTernaryMethodNode.create();
348+
callGet = insert(CallTernaryMethodNode.create());
349349
}
350350
return callGet;
351351
}

0 commit comments

Comments
 (0)