Skip to content

Commit d2a3d4d

Browse files
committed
GR-43663: implement the computeSize truffle api
- for the truffle node splitting heuristic
1 parent 910c0b0 commit d2a3d4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/PBytecodeRootNode.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,11 @@ private PBytecodeRootNode(PythonLanguage language, FrameDescriptor fd, Signature
688688
this.selfIndex = selfIndexValue;
689689
}
690690

691+
@Override
692+
protected int computeSize() {
693+
return bytecode.length / 2;
694+
}
695+
691696
@Override
692697
public String getName() {
693698
return name.toJavaStringUncached();

0 commit comments

Comments
 (0)