< prev index next >

src/jdk/nashorn/internal/runtime/CodeInstaller.java

Print this page
rev 1358 : 8067636: ant javadoc target is broken
Reviewed-by: hannesw, lagergren


  69      * {@link ClassEmitter} or the {@link Compiler}. If the "--verify-code" parameter
  70      * hasn't been given, this is a nop
  71      *
  72      * @param code bytecode to verify
  73      */
  74     public void verify(final byte[] code);
  75 
  76     /**
  77      * Get next unique script id
  78      * @return unique script id
  79      */
  80     public long getUniqueScriptId();
  81 
  82     /**
  83      * Store a compiled script for later reuse
  84      *
  85      * @param cacheKey key to use in cache
  86      * @param source the script source
  87      * @param mainClassName the main class name
  88      * @param classBytes map of class names to class bytes
  89      * @param initializers compilation id -> FunctionInitializer map
  90      * @param constants constants array
  91      * @param compilationId compilation id
  92      */
  93     public void storeScript(final String cacheKey, final Source source, final String mainClassName, final Map<String, byte[]> classBytes,
  94             final Map<Integer, FunctionInitializer> initializers, final Object[] constants, final int compilationId);
  95 
  96     /**
  97      * Load a previously compiled script
  98      * @param source the script source
  99      * @param functionKey the function id and signature
 100      * @return compiled script data
 101      */
 102     public StoredScript loadScript(Source source, String functionKey);
 103 
 104     /**
 105      * Returns a new code installer that shares most of the functionality of this code installer, but uses a
 106      * new, independent class loader.
 107      * @return a new code installer with a new independent class loader.
 108      */
 109     public CodeInstaller<T> withNewLoader();


  69      * {@link ClassEmitter} or the {@link Compiler}. If the "--verify-code" parameter
  70      * hasn't been given, this is a nop
  71      *
  72      * @param code bytecode to verify
  73      */
  74     public void verify(final byte[] code);
  75 
  76     /**
  77      * Get next unique script id
  78      * @return unique script id
  79      */
  80     public long getUniqueScriptId();
  81 
  82     /**
  83      * Store a compiled script for later reuse
  84      *
  85      * @param cacheKey key to use in cache
  86      * @param source the script source
  87      * @param mainClassName the main class name
  88      * @param classBytes map of class names to class bytes
  89      * @param initializers compilation id -&gt; FunctionInitializer map
  90      * @param constants constants array
  91      * @param compilationId compilation id
  92      */
  93     public void storeScript(final String cacheKey, final Source source, final String mainClassName, final Map<String, byte[]> classBytes,
  94             final Map<Integer, FunctionInitializer> initializers, final Object[] constants, final int compilationId);
  95 
  96     /**
  97      * Load a previously compiled script
  98      * @param source the script source
  99      * @param functionKey the function id and signature
 100      * @return compiled script data
 101      */
 102     public StoredScript loadScript(Source source, String functionKey);
 103 
 104     /**
 105      * Returns a new code installer that shares most of the functionality of this code installer, but uses a
 106      * new, independent class loader.
 107      * @return a new code installer with a new independent class loader.
 108      */
 109     public CodeInstaller<T> withNewLoader();
< prev index next >