Skip to content

Commit 7e2edd0

Browse files
committed
comment that getContext is the branch profile
1 parent 932af98 commit 7e2edd0

File tree

1 file changed

+4
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,7 @@ Object doit(Object argument) {
12461246
Object[] arguments = createArgsNode.execute(argument);
12471247
return invokeNode.execute(null, arguments, new PKeyword[0]);
12481248
} catch (PException e) {
1249+
// getContext() acts as a branch profile
12491250
getContext().setCurrentException(e);
12501251
return errorResult;
12511252
}
@@ -1270,6 +1271,7 @@ Object doit(Object arg1, Object arg2) {
12701271
Object[] arguments = createArgsNode.execute(arg1, arg2);
12711272
return invokeNode.execute(null, arguments, new PKeyword[0]);
12721273
} catch (PException e) {
1274+
// getContext() acts as a branch profile
12731275
getContext().setCurrentException(e);
12741276
return errorResult;
12751277
}
@@ -1294,6 +1296,7 @@ Object doit(Object arg1, Object arg2, Object arg3) {
12941296
Object[] arguments = createArgsNode.execute(arg1, arg2, arg3);
12951297
return invokeNode.execute(null, arguments, new PKeyword[0]);
12961298
} catch (PException e) {
1299+
// getContext() acts as a branch profile
12971300
getContext().setCurrentException(e);
12981301
return errorResult;
12991302
}
@@ -1322,6 +1325,7 @@ public final Object execute(VirtualFrame frame) {
13221325
Object[] arguments = createArgsNode.execute(args);
13231326
return invokeNode.execute(null, arguments, new PKeyword[0]);
13241327
} catch (PException e) {
1328+
// getContext() acts as a branch profile
13251329
getContext().setCurrentException(e);
13261330
return errorResult;
13271331
}

0 commit comments

Comments
 (0)