2014-03-31 12:13:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#FLAGS="-Djava.lang.invoke.MethodHandle.COMPILE_THRESHOLD=3 -Djava.lang.invoke.MethodHandle.DUMP_CLASS_FILES=true -Djava.lang.invoke.MethodHandle.TRACE_METHOD_LINKAGE=true -Djava.lang.invoke.MethodHandle.TRACE_INTERPRETER=true"
|
|
|
|
|
|
|
|
DIR=..
|
|
|
|
NASHORN_JAR=$DIR/dist/nashorn.jar
|
|
|
|
|
|
|
|
$JAVA_HOME/bin/java \
|
|
|
|
$FLAGS \
|
|
|
|
-ea \
|
|
|
|
-esa \
|
2014-04-18 18:12:21 +00:00
|
|
|
-Xbootclasspath/p:$NASHORN_JAR \
|
2014-03-31 12:13:34 +00:00
|
|
|
-Xms2G -Xmx2G \
|
|
|
|
-XX:+UnlockCommercialFeatures \
|
|
|
|
-XX:TypeProfileLevel=222 \
|
|
|
|
-XX:+UnlockExperimentalVMOptions \
|
2014-04-18 18:12:21 +00:00
|
|
|
-XX:+UseTypeSpeculation \
|
|
|
|
-XX:+UseMathExactIntrinsics \
|
2014-03-31 12:13:34 +00:00
|
|
|
-XX:+UnlockDiagnosticVMOptions \
|
2014-04-18 18:12:21 +00:00
|
|
|
-XX:+UseNewCode \
|
2014-03-31 12:13:34 +00:00
|
|
|
-cp $CLASSPATH:../build/test/classes/ \
|
|
|
|
jdk.nashorn.tools.Shell ${@}
|
|
|
|
|
|
|
|
#-XX:+ShowHiddenFrames \
|
|
|
|
#-XX:+PrintOptoAssembly \
|
|
|
|
#-XX:-TieredCompilation \
|
|
|
|
#-XX:CICompilerCount=1 \
|