Skip to content

Commit 2d40a57

Browse files
committed
Support frames of builtins when stack walking.
1 parent bca573b commit 2d40a57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/frame/ReadCallerFrameNode.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ public Frame visitFrame(FrameInstance frameInstance) {
162162
// avoid overriding the location if we don't know it
163163
if (callNode != null) {
164164
info.setCallNode(callNode);
165+
} else if (pRootNode.isInternal()) {
166+
// builtin functions may call without a Truffle call node; in
167+
// this case, we use the root node as location
168+
info.setCallNode(pRootNode);
165169
}
166170
// We may never return a frame without location because then we
167171
// cannot materialize it.

0 commit comments

Comments
 (0)