We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f87c8 commit 011b77aCopy full SHA for 011b77a
src/main/java/org/perlonjava/astvisitor/BytecodeSizeEstimator.java
@@ -229,8 +229,8 @@ public void visit(TernaryOperatorNode node) {
229
230
@Override
231
public void visit(SubroutineNode node) {
232
- // Mirror EmitSubroutine.emitSubroutine() patterns
233
- if (node.block != null) node.block.accept(this);
+ // Subroutine body is not part of the current block
+ // if (node.block != null) node.block.accept(this);
234
estimatedSize += OBJECT_CREATION + METHOD_CALL_OVERHEAD; // Subroutine creation
235
}
236
0 commit comments