/** * overrides the visitor to reset the stack * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { if (prescreen(getMethod())) { ifBlocks.clear(); loadedRegs.clear(); loopLocations.clear(); stack.resetForMethodEntry(this); state = State.SAW_NOTHING; super.visitCode(obj); } }
/** * overrides the visitor to reset the stack * * @param obj * the context object of the currently parsed code block */ @Override public void visitCode(Code obj) { if (prescreen(getMethod())) { ifBlocks.clear(); loadedRegs.clear(); loopLocations.clear(); stack.resetForMethodEntry(this); state = State.SAW_NOTHING; super.visitCode(obj); } }