src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Compiler.java
changeset 47276 bfa048898f11
parent 47216 71c04702a3d5
child 47366 cefe2083f3d1
equal deleted inserted replaced
47275:b4c8426fe105 47276:bfa048898f11
   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