author | sundar |
Thu, 28 Jun 2018 18:04:19 +0530 | |
changeset 50878 | fb7800b66c92 |
parent 48543 | 7067fe4e054e |
child 55657 | 107ebf94ddcc |
permissions | -rw-r--r-- |
16147 | 1 |
# |
48543
7067fe4e054e
8189102: All tools should support -?, -h and --help
goetz
parents:
47366
diff
changeset
|
2 |
# Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
16147 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
10 |
# |
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
24 |
# |
|
25 |
option.error.invalid.option="{0}" is not a recognized option. Use "{1}" or "{2}" to see a list of all supported options. |
|
26 |
||
27 |
nashorn.options = Usage: jjs [option=value]* [filename.js]+ [-- options...]\n\ |
|
28 |
\n\ |
|
29 |
Valid options are: |
|
30 |
||
31 |
# |
|
32 |
# Localized meta descriptions |
|
33 |
# |
|
34 |
nashorn.options.param = param |
|
35 |
nashorn.options.default = default |
|
36 |
||
37 |
# |
|
38 |
# Which option is "help". |
|
39 |
# |
|
40 |
nashorn.options.help.key = nashorn.option.help |
|
41 |
||
42 |
# |
|
43 |
# Which option is "xhelp". |
|
44 |
# |
|
45 |
nashorn.options.xhelp.key = nashorn.option.xhelp |
|
46 |
||
47 |
# |
|
48 |
# Which option is "D". |
|
49 |
# |
|
50 |
nashorn.options.D.key = nashorn.option.D |
|
51 |
||
52 |
## |
|
53 |
## Grammar: at least short or long form. Arguments are optional, in that case they are given as |
|
54 |
## |
|
55 |
## params - a description of the parameters for command line usage |
|
56 |
## name - the name of the option, e.g. "--long-name" |
|
57 |
## short_name - the short name of the option, e.g. "-l" |
|
58 |
## type - the type of the option, currently allowed: boolean, integer, string, log, timezone. defaults to boolean if left out |
|
59 |
## is_undocumented - should this option never appear in the online help. defaults to no. |
|
60 |
## desc - description of what the option does |
|
61 |
## default - default value of the option. e.g. debug.lines is true by default. Not set means option not available by default |
|
18335
1b5fdae617cf
8016550: nashorn.option.no.syntax.extensions has the wrong default
sundar
parents:
17776
diff
changeset
|
62 |
## dependency - does this arg imply another arg. |
16147 | 63 |
## confict - does this arg conflict with another arg e.g trace && instrument |
64 |
## value_next_arg - is the opton's value passed as next argument in command line? |
|
65 |
## |
|
66 |
## At least short_name or name needs to be in place for an argument descriptor to be valid. |
|
67 |
||
68 |
nashorn.option.help = { \ |
|
48543
7067fe4e054e
8189102: All tools should support -?, -h and --help
goetz
parents:
47366
diff
changeset
|
69 |
name="--help", \ |
16147 | 70 |
short_name="-h", \ |
48543
7067fe4e054e
8189102: All tools should support -?, -h and --help
goetz
parents:
47366
diff
changeset
|
71 |
desc="Print this help message." \ |
16147 | 72 |
} |
73 |
||
74 |
nashorn.option.xhelp = { \ |
|
75 |
name="-xhelp", \ |
|
76 |
is_undocumented=true, \ |
|
77 |
desc="Print extended help for command line flags." \ |
|
78 |
} |
|
79 |
||
33888 | 80 |
nashorn.option.anonymous.classes = { \ |
81 |
name="--anonymous-classes", \ |
|
82 |
is_undocumented=true, \ |
|
83 |
params=[auto|true|false], \ |
|
84 |
default=auto, \ |
|
85 |
type=string, \ |
|
86 |
desc="Use VM anonymous classes for compiled scripts." \ |
|
87 |
} |
|
88 |
||
16147 | 89 |
nashorn.option.class.cache.size ={ \ |
90 |
name="--class-cache-size", \ |
|
18335
1b5fdae617cf
8016550: nashorn.option.no.syntax.extensions has the wrong default
sundar
parents:
17776
diff
changeset
|
91 |
short_name="-ccs", \ |
16147 | 92 |
desc="Size of the Class cache size per global scope.", \ |
93 |
is_undocumented=true, \ |
|
16770 | 94 |
type=Integer, \ |
95 |
default=50 \ |
|
16147 | 96 |
} |
97 |
||
98 |
nashorn.option.classpath ={ \ |
|
99 |
name="-classpath", \ |
|
100 |
short_name="-cp", \ |
|
101 |
desc="-cp path. Specify where to find user class files.", \ |
|
102 |
value_next_arg=true, \ |
|
103 |
type=String \ |
|
104 |
} |
|
105 |
||
106 |
nashorn.option.compile.only = { \ |
|
16770 | 107 |
name="--compile-only", \ |
16147 | 108 |
short_name="-co", \ |
109 |
is_undocumented=true, \ |
|
110 |
desc="Compile without running.", \ |
|
111 |
type=Boolean \ |
|
112 |
} |
|
113 |
||
24279 | 114 |
nashorn.option.const.as.var = { \ |
115 |
name="--const-as-var", \ |
|
116 |
is_undocumented=true, \ |
|
117 |
desc="Replace 'const' with 'var'.", \ |
|
118 |
type=Boolean \ |
|
119 |
} |
|
120 |
||
16147 | 121 |
nashorn.option.d = { \ |
122 |
name="--dump-debug-dir", \ |
|
123 |
short_name="-d", \ |
|
124 |
is_undocumented=true, \ |
|
125 |
params="<path>", \ |
|
30513
14cefab8350f
8080090: -d option should dump script source as well
sundar
parents:
26982
diff
changeset
|
126 |
desc="specify a destination directory to dump source and class files.", \ |
16147 | 127 |
type=String \ |
128 |
} |
|
129 |
||
33888 | 130 |
nashorn.option.D = { \ |
131 |
name="-D", \ |
|
132 |
desc="-Dname=value. Set a system property. This option can be repeated.", \ |
|
133 |
type=String \ |
|
134 |
} |
|
135 |
||
136 |
nashorn.option.debug.lines = { \ |
|
137 |
name="--debug-lines", \ |
|
138 |
is_undocumented=true, \ |
|
139 |
desc="Generate line number table in .class files.", \ |
|
140 |
default=true \ |
|
141 |
} |
|
142 |
||
143 |
nashorn.option.debug.locals = { \ |
|
144 |
name="--debug-locals", \ |
|
145 |
is_undocumented=true, \ |
|
146 |
desc="Generate local variable table in .class files." \ |
|
147 |
} |
|
148 |
||
149 |
nashorn.option.debug.scopes = { \ |
|
150 |
name="--debug-scopes", \ |
|
151 |
is_undocumented=true, \ |
|
152 |
desc="Put all variables in scopes to make them debuggable." \ |
|
153 |
} |
|
154 |
||
16770 | 155 |
nashorn.option.doe = { \ |
156 |
name="-dump-on-error", \ |
|
157 |
short_name="-doe", \ |
|
158 |
desc="Dump a stack trace on errors." \ |
|
16147 | 159 |
} |
160 |
||
161 |
nashorn.option.empty.statements = { \ |
|
162 |
name="--empty-statements", \ |
|
163 |
is_undocumented=true, \ |
|
164 |
desc="Preserve empty statements in AST." \ |
|
165 |
} |
|
166 |
||
167 |
nashorn.option.early.lvalue.error = { \ |
|
168 |
name="--early-lvalue-error", \ |
|
169 |
is_undocumented=true, \ |
|
170 |
desc="invalid lvalue expressions should be reported as early errors.", \ |
|
171 |
type=Boolean, \ |
|
172 |
default=true \ |
|
173 |
} |
|
174 |
||
175 |
nashorn.option.fullversion = { \ |
|
176 |
name="-fullversion", \ |
|
177 |
short_name="-fv", \ |
|
178 |
desc="Print full version info of Nashorn." \ |
|
179 |
} |
|
180 |
||
17257
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
181 |
nashorn.option.function.statement.error= { \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
182 |
name="--function-statement-error", \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
183 |
desc="Report an error when function declaration is used as a statement.", \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
184 |
is_undocumented=true, \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
185 |
default=false \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
186 |
} |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
187 |
|
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
188 |
nashorn.option.function.statement.warning = { \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
189 |
name="--function-statement-warning", \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
190 |
desc="Warn when function declaration is used as a statement.", \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
191 |
is_undocumented=true, \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
192 |
default=false \ |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
193 |
} |
a2232050cd8f
8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents:
17244
diff
changeset
|
194 |
|
17244 | 195 |
nashorn.option.fx = { \ |
196 |
name="-fx", \ |
|
197 |
desc="Launch script as an fx application.", \ |
|
198 |
default=false \ |
|
199 |
} |
|
200 |
||
19623
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
201 |
nashorn.option.global.per.engine = { \ |
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
202 |
name="--global-per-engine", \ |
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
203 |
desc="Use single Global instance per script engine instance.", \ |
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
204 |
is_undocumented=true, \ |
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
205 |
type=Boolean, \ |
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
206 |
default=false \ |
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
207 |
} |
53207b2e3a7d
8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents:
19619
diff
changeset
|
208 |
|
33888 | 209 |
nashorn.option.language = { \ |
210 |
name="--language", \ |
|
211 |
type=String, \ |
|
212 |
params=[es5|es6], \ |
|
213 |
default=es5, \ |
|
214 |
desc="Specify ECMAScript language version." \ |
|
215 |
} |
|
216 |
||
16147 | 217 |
nashorn.option.log = { \ |
218 |
name="--log", \ |
|
219 |
is_undocumented=true, \ |
|
220 |
params="<module:level>,*", \ |
|
221 |
desc="Enable logging of a given level for a given number of sub systems. \ |
|
24767
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
222 |
[for example: --log=fields:finest,codegen:info].", \ |
16147 | 223 |
type=Log \ |
224 |
} |
|
225 |
||
50878
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
226 |
nashorn.option.no.deprecation.warning = { \ |
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
227 |
name="--no-deprecation-warning", \ |
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
228 |
type=Boolean, \ |
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
229 |
default=false, \ |
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
230 |
desc="Do not show nashorn deprecation warning." \ |
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
231 |
} |
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
232 |
|
fb7800b66c92
8204492: Add deprecation annotation to Nashorn APIs and warning to nashorn, jjs
sundar
parents:
48543
diff
changeset
|
233 |
|
16523
af8b30edebce
8009718: Lazy execution architecture continued - ScriptFunctionData is either final or recompilable. Moved ScriptFunctionData creation logic away from runtime to compile time. Prepared for method generation/specialization. Got rid of ScriptFunctionImplTrampoline whose semantics could be done as part of the relinking anyway. Merge with the lookup package change.
lagergren
parents:
16196
diff
changeset
|
234 |
nashorn.option.lazy.compilation = { \ |
af8b30edebce
8009718: Lazy execution architecture continued - ScriptFunctionData is either final or recompilable. Moved ScriptFunctionData creation logic away from runtime to compile time. Prepared for method generation/specialization. Got rid of ScriptFunctionImplTrampoline whose semantics could be done as part of the relinking anyway. Merge with the lookup package change.
lagergren
parents:
16196
diff
changeset
|
235 |
name="--lazy-compilation", \ |
af8b30edebce
8009718: Lazy execution architecture continued - ScriptFunctionData is either final or recompilable. Moved ScriptFunctionData creation logic away from runtime to compile time. Prepared for method generation/specialization. Got rid of ScriptFunctionImplTrampoline whose semantics could be done as part of the relinking anyway. Merge with the lookup package change.
lagergren
parents:
16196
diff
changeset
|
236 |
is_undocumented=true, \ |
24779 | 237 |
desc="Use lazy code generation strategies - do not compile the entire script at once.", \ |
238 |
default=true \ |
|
239 |
} |
|
240 |
||
16147 | 241 |
nashorn.option.loader.per.compile = { \ |
242 |
name="--loader-per-compile", \ |
|
243 |
is_undocumented=true, \ |
|
244 |
desc="Create a new class loader per compile.", \ |
|
245 |
default=true \ |
|
246 |
} |
|
247 |
||
41426
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
248 |
nashorn.option.module.path ={ \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
249 |
name="--module-path", \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
250 |
desc="--module-path path. Specify where to find user java modules.", \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
251 |
value_next_arg=true, \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
252 |
type=String \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
253 |
} |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
254 |
|
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
255 |
nashorn.option.add.modules ={ \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
256 |
name="--add-modules", \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
257 |
desc="--add-modules modules. Specify the root user java modules.", \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
258 |
repeated=true, \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
259 |
value_next_arg=true, \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
260 |
type=String \ |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
261 |
} |
aa60c8d89a92
8167018: Nashorn and jjs should support --module-path and --add-modules options
sundar
parents:
33888
diff
changeset
|
262 |
|
18855
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
263 |
nashorn.option.no.java = { \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
264 |
name="--no-java", \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
265 |
short_name="-nj", \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
266 |
is_undocumented=true, \ |
24767
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
267 |
desc="Disable Java support.", \ |
18855
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
268 |
default=false \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
269 |
} |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
270 |
|
24767
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
271 |
nashorn.option.no.syntax.extensions = { \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
272 |
name="--no-syntax-extensions", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
273 |
short_name="-nse", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
274 |
is_undocumented=true, \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
275 |
desc="Disallow non-standard syntax extensions.", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
276 |
default=false \ |
16196
58f6f046bb5e
8006983: Introduce a command line option to switch off syntactic extensions of nashorn
sundar
parents:
16151
diff
changeset
|
277 |
} |
58f6f046bb5e
8006983: Introduce a command line option to switch off syntactic extensions of nashorn
sundar
parents:
16151
diff
changeset
|
278 |
|
18855
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
279 |
nashorn.option.no.typed.arrays = { \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
280 |
name="--no-typed-arrays", \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
281 |
short_name="-nta", \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
282 |
is_undocumented=true, \ |
24767
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
283 |
desc="Disable typed arrays support.", \ |
18855
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
284 |
default=false \ |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
285 |
} |
408663ef8f66
8020015: shared PropertyMaps should not be used without duplication
sundar
parents:
18335
diff
changeset
|
286 |
|
33888 | 287 |
nashorn.option.optimistic.types = { \ |
288 |
name="--optimistic-types", \ |
|
289 |
short_name="-ot", \ |
|
290 |
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 enabled by default, but can be disabled for faster startup performance.", \ |
|
291 |
default=true \ |
|
292 |
} |
|
293 |
||
16147 | 294 |
nashorn.option.parse.only = { \ |
16770 | 295 |
name="--parse-only", \ |
16147 | 296 |
is_undocumented=true, \ |
297 |
desc="Parse without compiling." \ |
|
298 |
} |
|
299 |
||
23767 | 300 |
nashorn.option.persistent.code.cache = { \ |
301 |
name="--persistent-code-cache", \ |
|
302 |
short_name="-pcc", \ |
|
303 |
desc="Enable disk cache for compiled scripts.", \ |
|
304 |
is_undocumented=true, \ |
|
305 |
default=false \ |
|
306 |
} |
|
307 |
||
16147 | 308 |
nashorn.option.profile.callsites = { \ |
309 |
name="--profile-callsites", \ |
|
310 |
short_name="-pcs", \ |
|
311 |
is_undocumented=true, \ |
|
312 |
desc="Dump callsite profile data." \ |
|
313 |
} |
|
314 |
||
315 |
nashorn.option.print.ast = { \ |
|
316 |
name="--print-ast", \ |
|
317 |
is_undocumented=true, \ |
|
318 |
desc="Print abstract syntax tree." \ |
|
319 |
} |
|
320 |
||
321 |
nashorn.option.print.lower.ast = { \ |
|
322 |
name="--print-lower-ast", \ |
|
323 |
is_undocumented=true, \ |
|
324 |
desc="Print lowered abstract syntax tree." \ |
|
325 |
} |
|
326 |
||
327 |
nashorn.option.print.code = { \ |
|
328 |
name="--print-code", \ |
|
24719 | 329 |
short_name="-pc", \ |
16147 | 330 |
is_undocumented=true, \ |
24719 | 331 |
params="[dir:<output-dir>,function:<name>]", \ |
332 |
type=keyvalues, \ |
|
333 |
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." \ |
|
16147 | 334 |
} |
335 |
||
336 |
nashorn.option.print.no.newline = { \ |
|
337 |
name="--print-no-newline", \ |
|
338 |
is_undocumented=true, \ |
|
339 |
desc="Print function will not print new line char." \ |
|
340 |
} |
|
341 |
||
342 |
nashorn.option.print.parse = { \ |
|
343 |
name="--print-parse", \ |
|
24719 | 344 |
short_name="-pp", \ |
16147 | 345 |
is_undocumented=true, \ |
346 |
desc="Print the parse tree." \ |
|
347 |
} |
|
348 |
||
349 |
nashorn.option.print.lower.parse = { \ |
|
350 |
name="--print-lower-parse", \ |
|
24719 | 351 |
short_name="-plp", \ |
16147 | 352 |
is_undocumented=true, \ |
353 |
desc="Print the parse tree after lowering." \ |
|
354 |
} |
|
355 |
||
356 |
nashorn.option.print.symbols = { \ |
|
357 |
name="--print-symbols", \ |
|
358 |
is_undocumented=true, \ |
|
359 |
desc="Print the symbol table." \ |
|
360 |
} |
|
361 |
||
362 |
nashorn.option.strict = { \ |
|
363 |
name="-strict", \ |
|
364 |
desc="Run scripts in strict mode." \ |
|
365 |
} |
|
366 |
||
367 |
nashorn.option.scripting = { \ |
|
368 |
name="-scripting", \ |
|
18335
1b5fdae617cf
8016550: nashorn.option.no.syntax.extensions has the wrong default
sundar
parents:
17776
diff
changeset
|
369 |
desc="Enable scripting features." \ |
16147 | 370 |
} |
371 |
||
24767
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
372 |
nashorn.option.stdout = { \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
373 |
name="--stdout", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
374 |
is_undocumented=true, \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
375 |
type=String, \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
376 |
params="<output console>", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
377 |
desc="Redirect stdout to a filename or to another tty, e.g. stderr." \ |
16147 | 378 |
} |
379 |
||
24767
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
380 |
nashorn.option.stderr = { \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
381 |
name="--stderr", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
382 |
is_undocumented=true, \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
383 |
type=String, \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
384 |
params="<output console>", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
385 |
desc="Redirect stderr to a filename or to another tty, e.g. stdout." \ |
16147 | 386 |
} |
387 |
||
17518
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
388 |
nashorn.option.timezone = { \ |
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
389 |
name="-timezone", \ |
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
390 |
short_name="-t", \ |
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
391 |
params="<timezone>", \ |
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
392 |
desc="Set timezone for script execution.", \ |
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
393 |
type=TimeZone \ |
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
394 |
} |
2225a4f929c0
8013477: Node.setSymbol needs to be copy on write - enable IR snapshots for recompilation based on callsite type specialization. [not enabled by default, hidden by a flag for now]
lagergren
parents:
17257
diff
changeset
|
395 |
|
17776
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
396 |
nashorn.option.locale = { \ |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
397 |
name="--locale", \ |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
398 |
short_name="-l", \ |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
399 |
is_undocumented=true, \ |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
400 |
params="<locale>", \ |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
401 |
desc="Set Locale for script execution.", \ |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
402 |
type=Locale \ |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
403 |
} |
59fb7b69846d
8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents:
17756
diff
changeset
|
404 |
|
24767
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
405 |
nashorn.option.trace.callsites = { \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
406 |
name="--trace-callsites", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
407 |
short_name="-tcs", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
408 |
is_undocumented=true, \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
409 |
type=keyvalues, \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
410 |
params="[=[option,]*]", \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
411 |
desc="Enable callsite trace mode. Options are: miss [trace callsite misses] \ |
0b8af588070b
8044012: Integrate the latest best known performance flags int ant octane jobs, and make sure that it's easy to compare 'ant octane-nashorn' and 'ant octane-v8' at the push of a button. (or rather; the entry of a command line)
lagergren
parents:
24764
diff
changeset
|
412 |
enterexit [trace callsite enter/exit], objects [print object properties]." \ |
16147 | 413 |
} |
414 |
||
33686
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
415 |
nashorn.option.unstable.relink.threshold ={ \ |
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
416 |
name="--unstable-relink-threshold", \ |
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
417 |
short_name="-urt", \ |
33888 | 418 |
desc="Number of times a dynamic call site has to be \ |
419 |
relinked before it is considered unstable, when the \ |
|
33686
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
420 |
runtime will try to link it as if it is megamorphic.", \ |
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
421 |
is_undocumented=true, \ |
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
422 |
type=Integer, \ |
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
423 |
default=-1 \ |
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
424 |
} |
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
425 |
|
1391474a6405
8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
attila
parents:
32895
diff
changeset
|
426 |
|
16147 | 427 |
nashorn.option.verify.code = { \ |
428 |
name="--verify-code", \ |
|
429 |
is_undocumented=true, \ |
|
430 |
desc="Verify byte code before running." \ |
|
431 |
} |
|
432 |
||
433 |
nashorn.option.version = { \ |
|
434 |
name="-version", \ |
|
435 |
short_name="-v", \ |
|
436 |
desc="Print version info of Nashorn." \ |
|
437 |
} |
|
438 |