src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/FunctionInitializer.java

Print this page

        

*** 58,67 **** --- 58,78 ---- public FunctionInitializer(final FunctionNode functionNode) { this(functionNode, null); } /** + * Copy constructor. + * + * @param init original initializer + */ + FunctionInitializer(final FunctionInitializer init) { + this.className = init.getClassName(); + this.methodType = init.getMethodType(); + this.flags = init.getFlags(); + } + + /** * Constructor. * * @param functionNode the function node * @param invalidatedProgramPoints invalidated program points */