< prev index next >

src/jdk/nashorn/internal/codegen/SplitIntoFunctions.java

Print this page

        

*** 99,109 **** private int nextFunctionId = -2; public SplitIntoFunctions(final Compiler compiler) { super(new BlockLexicalContext() { @Override ! protected Block afterSetStatements(Block block) { for(Statement stmt: block.getStatements()) { assert !(stmt instanceof SplitNode); } return block; } --- 99,109 ---- private int nextFunctionId = -2; public SplitIntoFunctions(final Compiler compiler) { super(new BlockLexicalContext() { @Override ! protected Block afterSetStatements(final Block block) { for(Statement stmt: block.getStatements()) { assert !(stmt instanceof SplitNode); } return block; }
*** 299,309 **** pass, fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail)); } @Override ! public boolean enterVarNode(VarNode varNode) { if (!inSplitNode()) { return super.enterVarNode(varNode); } assert !varNode.isBlockScoped(); //TODO: we must handle these too, but we currently don't --- 299,309 ---- pass, fail == null ? null : new Block(NO_TOKEN, NO_FINISH, fail)); } @Override ! public boolean enterVarNode(final VarNode varNode) { if (!inSplitNode()) { return super.enterVarNode(varNode); } assert !varNode.isBlockScoped(); //TODO: we must handle these too, but we currently don't
< prev index next >