Skip to content

Commit 72e509a

Browse files
cosminbascatomasstupka
authored andcommitted
Compiler: record function qualname as part of the code unit constants
1 parent 803ee6d commit 72e509a

File tree

1 file changed

+1
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler

1 file changed

+1
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/Compiler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ private void makeClosure(CodeUnit code) {
641641
addOp(CLOSURE_FROM_STACK, code.freevars.length);
642642
}
643643
int flags = code.flags & (CodeUnit.HAS_DEFAULTS | CodeUnit.HAS_KWONLY_DEFAULTS | CodeUnit.HAS_ANNOTATIONS | CodeUnit.HAS_CLOSURE);
644+
addObject(unit.constants, code.qualname);
644645
addOp(MAKE_FUNCTION, addObject(unit.constants, code), new byte[]{(byte) flags});
645646
}
646647

0 commit comments

Comments
 (0)