aboutsummaryrefslogtreecommitdiff
path: root/src/jdk/nashorn/internal/runtime/resources/Options.properties
diff options
context:
space:
mode:
Diffstat (limited to 'src/jdk/nashorn/internal/runtime/resources/Options.properties')
-rw-r--r--src/jdk/nashorn/internal/runtime/resources/Options.properties93
1 files changed, 50 insertions, 43 deletions
diff --git a/src/jdk/nashorn/internal/runtime/resources/Options.properties b/src/jdk/nashorn/internal/runtime/resources/Options.properties
index 9262a401..57943e01 100644
--- a/src/jdk/nashorn/internal/runtime/resources/Options.properties
+++ b/src/jdk/nashorn/internal/runtime/resources/Options.properties
@@ -177,7 +177,7 @@ nashorn.option.log = { \
is_undocumented=true, \
params="<module:level>,*", \
desc="Enable logging of a given level for a given number of sub systems. \
- [for example: --log=fields:finest,codegen:info]", \
+ [for example: --log=fields:finest,codegen:info].", \
type=Log \
}
@@ -197,7 +197,15 @@ nashorn.option.debug.locals = { \
nashorn.option.lazy.compilation = { \
name="--lazy-compilation", \
is_undocumented=true, \
- desc="EXPERIMENTAL: Use lazy code generation strategies - do not compile the entire script at once." \
+ desc="Use lazy code generation strategies - do not compile the entire script at once.", \
+ default=true \
+}
+
+nashorn.option.optimistic.types = { \
+ name="--optimistic-types", \
+ short_name="-ot", \
+ desc="Use optimistic type assumptions with deoptimizing recompilation. This makes the compiler try, for any program symbol whose type cannot be proven at compile time, to type it as narrow and primitive as possible. If the runtime encounters an error because symbol type is too narrow, a wider method will be generated until steady stage is reached. While this produces as optimal Java Bytecode as possible, erroneous type guesses will lead to longer warmup. Optimistic typing is currently disabled by default, but can be enabled for significantly better peak performance.", \
+ default=false \
}
nashorn.option.loader.per.compile = { \
@@ -211,23 +219,23 @@ nashorn.option.no.java = { \
name="--no-java", \
short_name="-nj", \
is_undocumented=true, \
- desc="No Java support", \
+ desc="Disable Java support.", \
default=false \
}
-nashorn.option.no.syntax.extensions = { \
- name="--no-syntax-extensions", \
- short_name="-nse", \
- is_undocumented=true, \
- desc="No non-standard syntax extensions", \
- default=false \
+nashorn.option.no.syntax.extensions = { \
+ name="--no-syntax-extensions", \
+ short_name="-nse", \
+ is_undocumented=true, \
+ desc="Disallow non-standard syntax extensions.", \
+ default=false \
}
nashorn.option.no.typed.arrays = { \
name="--no-typed-arrays", \
short_name="-nta", \
is_undocumented=true, \
- desc="No Typed arrays support", \
+ desc="Disable typed arrays support.", \
default=false \
}
@@ -266,8 +274,11 @@ nashorn.option.print.lower.ast = { \
nashorn.option.print.code = { \
name="--print-code", \
+ short_name="-pc", \
is_undocumented=true, \
- desc="Print bytecode." \
+ params="[dir:<output-dir>,function:<name>]", \
+ type=keyvalues, \
+ desc="Print generated bytecode. If a directory is specified, nothing will be dumped to stderr. Also, in that case, .dot files will be generated for all functions or for the function with the specified name only." \
}
nashorn.option.print.mem.usage = { \
@@ -284,12 +295,14 @@ nashorn.option.print.no.newline = { \
nashorn.option.print.parse = { \
name="--print-parse", \
+ short_name="-pp", \
is_undocumented=true, \
desc="Print the parse tree." \
}
nashorn.option.print.lower.parse = { \
name="--print-lower-parse", \
+ short_name="-plp", \
is_undocumented=true, \
desc="Print the parse tree after lowering." \
}
@@ -300,12 +313,6 @@ nashorn.option.print.symbols = { \
desc="Print the symbol table." \
}
-nashorn.option.range.analysis = { \
- name="--range-analysis", \
- is_undocumented=true, \
- desc="EXPERIMENTAL: Do range analysis using known compile time types, and try to narrow number types" \
-}
-
nashorn.option.D = { \
name="-D", \
desc="-Dname=value. Set a system property. This option can be repeated.", \
@@ -322,28 +329,28 @@ nashorn.option.scripting = { \
desc="Enable scripting features." \
}
-nashorn.option.specialize.calls = { \
- name="--specialize-calls", \
- is_undocumented=true, \
- type=String, \
- params="[=function_1,...,function_n]", \
- desc="EXPERIMENTAL: Specialize all or a set of method according to callsite parameter types" \
+nashorn.option.language = { \
+ name="--language", \
+ type=String, \
+ params=[es5|es6], \
+ default=es5, \
+ desc="Specify ECMAScript language version." \
}
-nashorn.option.stdout = { \
- name="--stdout", \
- is_undocumented=true, \
- type=String, \
- params="<output console>", \
- desc="Redirect stdout to a filename or to another tty, e.g. stderr" \
+nashorn.option.stdout = { \
+ name="--stdout", \
+ is_undocumented=true, \
+ type=String, \
+ params="<output console>", \
+ desc="Redirect stdout to a filename or to another tty, e.g. stderr." \
}
-nashorn.option.stderr = { \
- name="--stderr", \
- is_undocumented=true, \
- type=String, \
- params="<output console>", \
- desc="Redirect stderr to a filename or to another tty, e.g. stdout" \
+nashorn.option.stderr = { \
+ name="--stderr", \
+ is_undocumented=true, \
+ type=String, \
+ params="<output console>", \
+ desc="Redirect stderr to a filename or to another tty, e.g. stdout." \
}
nashorn.option.timezone = { \
@@ -363,14 +370,14 @@ nashorn.option.locale = { \
type=Locale \
}
-nashorn.option.trace.callsites = { \
- name="--trace-callsites", \
- short_name="-tcs", \
- is_undocumented=true, \
- type=keyvalues, \
- params="[=[option,]*]", \
- desc="Enable callsite trace mode. Options are: miss [trace callsite misses] \
- enterexit [trace callsite enter/exit], objects [print object properties]" \
+nashorn.option.trace.callsites = { \
+ name="--trace-callsites", \
+ short_name="-tcs", \
+ is_undocumented=true, \
+ type=keyvalues, \
+ params="[=[option,]*]", \
+ desc="Enable callsite trace mode. Options are: miss [trace callsite misses] \
+ enterexit [trace callsite enter/exit], objects [print object properties]." \
}
nashorn.option.verify.code = { \