src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Compiler.java
equal
deleted
inserted
replaced
617 |
617 |
618 Type getParamType(final FunctionNode fn, final int pos) { |
618 Type getParamType(final FunctionNode fn, final int pos) { |
619 return types == null ? null : types.get(fn, pos); |
619 return types == null ? null : types.get(fn, pos); |
620 } |
620 } |
621 |
621 |
|
622 Type getReturnType() { |
|
623 return types == null || !isOnDemandCompilation() ? Type.UNKNOWN : types.getReturnType(); |
|
624 } |
|
625 |
622 /** |
626 /** |
623 * Do a compilation job |
627 * Do a compilation job |
624 * |
628 * |
625 * @param functionNode function node to compile |
629 * @param functionNode function node to compile |
626 * @param phases phases of compilation transforms to apply to function |
630 * @param phases phases of compilation transforms to apply to function |