nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/Options.properties
author hannesw
Mon, 05 Oct 2015 18:58:21 +0200
changeset 32895 5a09b2d3d73a
parent 30513 14cefab8350f
child 33686 1391474a6405
permissions -rw-r--r--
8138882: Performance regression due to anonymous classloading Reviewed-by: attila, sundar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     1
#
16151
97c1e756ae1e 8005663: Update copyright year to 2013
jlaskey
parents: 16147
diff changeset
     2
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     4
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    10
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    15
# accompanied this code).
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    16
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    20
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    23
# questions.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    24
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    25
option.error.invalid.option="{0}" is not a recognized option. Use "{1}" or "{2}" to see a list of all supported options.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    26
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    27
nashorn.options = Usage: jjs [option=value]* [filename.js]+ [-- options...]\n\
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    28
                \n\
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    29
                Valid options are:
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    30
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    31
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    32
# Localized meta descriptions
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    33
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    34
nashorn.options.param = param
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    35
nashorn.options.default = default
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    36
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    37
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    38
# Which option is "help".
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    39
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    40
nashorn.options.help.key = nashorn.option.help
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    41
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    42
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    43
# Which option is "xhelp".
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    44
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    45
nashorn.options.xhelp.key = nashorn.option.xhelp
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    46
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    47
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    48
# Which option is "D".
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    49
#
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    50
nashorn.options.D.key = nashorn.option.D
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    51
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    52
##
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    53
## Grammar: at least short or long form. Arguments are optional, in that case they are given as
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    54
##
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    55
## params - a description of the parameters for command line usage
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    56
## name - the name of the option, e.g. "--long-name"
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    57
## short_name - the short name of the option, e.g. "-l"
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    58
## type - the type of the option, currently allowed: boolean, integer, string, log, timezone. defaults to boolean if left out
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    59
## is_undocumented - should this option never appear in the online help. defaults to no.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    60
## desc - description of what the option does
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    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
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    63
## confict - does this arg conflict with another arg e.g trace && instrument
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    64
## value_next_arg - is the opton's value passed as next argument in command line?
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    65
##
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    66
## At least short_name or name needs to be in place for an argument descriptor to be valid.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    67
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    68
nashorn.option.help = {                       \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    69
    name="-help",                             \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    70
    short_name="-h",                          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    71
    desc="Print help for command line flags." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    72
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    73
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    74
nashorn.option.xhelp = {                               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    75
    name="-xhelp",                                     \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    76
    is_undocumented=true,                              \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    77
    desc="Print extended help for command line flags." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    78
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    79
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    80
nashorn.option.class.cache.size ={                            \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    81
    name="--class-cache-size",                                \
18335
1b5fdae617cf 8016550: nashorn.option.no.syntax.extensions has the wrong default
sundar
parents: 17776
diff changeset
    82
    short_name="-ccs",                                        \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    83
    desc="Size of the Class cache size per global scope.",    \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    84
    is_undocumented=true,                                     \
16770
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
    85
    type=Integer,                                             \
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
    86
    default=50                                                \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    87
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    88
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    89
nashorn.option.classpath ={                                   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    90
    name="-classpath",                                        \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    91
    short_name="-cp",                                         \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    92
    desc="-cp path. Specify where to find user class files.", \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    93
    value_next_arg=true,                                      \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    94
    type=String                                               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    95
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    96
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    97
nashorn.option.compile.only = {       \
16770
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
    98
    name="--compile-only",            \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    99
    short_name="-co",                 \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   100
    is_undocumented=true,             \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   101
    desc="Compile without running.",  \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   102
    type=Boolean                      \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   103
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   104
24279
33b0fbd03872 8027933: Add --const-as-var option
sundar
parents: 23767
diff changeset
   105
nashorn.option.const.as.var = {          \
33b0fbd03872 8027933: Add --const-as-var option
sundar
parents: 23767
diff changeset
   106
    name="--const-as-var",               \
33b0fbd03872 8027933: Add --const-as-var option
sundar
parents: 23767
diff changeset
   107
    is_undocumented=true,                \
33b0fbd03872 8027933: Add --const-as-var option
sundar
parents: 23767
diff changeset
   108
    desc="Replace 'const' with 'var'.",  \
33b0fbd03872 8027933: Add --const-as-var option
sundar
parents: 23767
diff changeset
   109
    type=Boolean                         \
33b0fbd03872 8027933: Add --const-as-var option
sundar
parents: 23767
diff changeset
   110
}
33b0fbd03872 8027933: Add --const-as-var option
sundar
parents: 23767
diff changeset
   111
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   112
nashorn.option.d = {                                             \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   113
    name="--dump-debug-dir",                                     \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   114
    short_name="-d",                                             \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   115
    is_undocumented=true,                                        \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   116
    params="<path>",                                             \
30513
14cefab8350f 8080090: -d option should dump script source as well
sundar
parents: 26982
diff changeset
   117
    desc="specify a destination directory to dump source and class files.", \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   118
    type=String                                                  \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   119
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   120
16770
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
   121
nashorn.option.doe = {                   \
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
   122
    name="-dump-on-error",               \
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
   123
    short_name="-doe",                   \
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
   124
    desc="Dump a stack trace on errors." \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   125
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   126
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   127
nashorn.option.empty.statements = {          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   128
    name="--empty-statements",               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   129
    is_undocumented=true,                    \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   130
    desc="Preserve empty statements in AST." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   131
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   132
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   133
nashorn.option.early.lvalue.error = {                                      \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   134
    name="--early-lvalue-error",                                           \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   135
    is_undocumented=true,                                                  \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   136
    desc="invalid lvalue expressions should be reported as early errors.", \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   137
    type=Boolean,                                                          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   138
    default=true                                                           \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   139
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   140
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   141
nashorn.option.fullversion = {                 \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   142
    name="-fullversion",                       \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   143
    short_name="-fv",                          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   144
    desc="Print full version info of Nashorn." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   145
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   146
17257
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   147
nashorn.option.function.statement.error= {                                    \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   148
    name="--function-statement-error",                                        \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   149
    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
   150
    is_undocumented=true,                                                     \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   151
    default=false                                                             \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   152
}
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   153
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   154
nashorn.option.function.statement.warning = {                      \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   155
    name="--function-statement-warning",                           \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   156
    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
   157
    is_undocumented=true,                                          \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   158
    default=false                                                  \
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   159
}
a2232050cd8f 8008814: Configurable ignore/warning/error behavior for function declaration as statement
attila
parents: 17244
diff changeset
   160
17244
041afba4cec5 8012251: jjs should support -fx option
jlaskey
parents: 16770
diff changeset
   161
nashorn.option.fx = {                           \
041afba4cec5 8012251: jjs should support -fx option
jlaskey
parents: 16770
diff changeset
   162
    name="-fx",                                 \
041afba4cec5 8012251: jjs should support -fx option
jlaskey
parents: 16770
diff changeset
   163
    desc="Launch script as an fx application.", \
041afba4cec5 8012251: jjs should support -fx option
jlaskey
parents: 16770
diff changeset
   164
    default=false                               \
041afba4cec5 8012251: jjs should support -fx option
jlaskey
parents: 16770
diff changeset
   165
}
041afba4cec5 8012251: jjs should support -fx option
jlaskey
parents: 16770
diff changeset
   166
19623
53207b2e3a7d 8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents: 19619
diff changeset
   167
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
   168
    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
   169
    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
   170
    is_undocumented=true,                                          \
53207b2e3a7d 8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents: 19619
diff changeset
   171
    type=Boolean,                               \
53207b2e3a7d 8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents: 19619
diff changeset
   172
    default=false                               \
53207b2e3a7d 8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents: 19619
diff changeset
   173
}
53207b2e3a7d 8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected.
sundar
parents: 19619
diff changeset
   174
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   175
nashorn.option.log = {                                                       \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   176
    name="--log",                                                            \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   177
    is_undocumented=true,                                                    \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   178
    params="<module:level>,*",                                               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   179
    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
   180
        [for example: --log=fields:finest,codegen:info].",                   \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   181
    type=Log                                                                 \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   182
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   183
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   184
nashorn.option.debug.lines = {                          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   185
    name="--debug-lines",                               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   186
    is_undocumented=true,                               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   187
    desc="Generate line number table in .class files.", \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   188
    default=true                                        \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   189
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   190
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   191
nashorn.option.debug.locals = {                           \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   192
    name="--debug-locals",                                \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   193
    is_undocumented=true,                                 \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   194
    desc="Generate local variable table in .class files." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   195
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   196
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
   197
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
   198
    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
   199
    is_undocumented=true,                                                                                \
24779
3bf490e146c3 8044502: Get rid of global optimistic flag
attila
parents: 24769
diff changeset
   200
    desc="Use lazy code generation strategies - do not compile the entire script at once.", \
3bf490e146c3 8044502: Get rid of global optimistic flag
attila
parents: 24769
diff changeset
   201
    default=true                                   \
3bf490e146c3 8044502: Get rid of global optimistic flag
attila
parents: 24769
diff changeset
   202
}
3bf490e146c3 8044502: Get rid of global optimistic flag
attila
parents: 24769
diff changeset
   203
3bf490e146c3 8044502: Get rid of global optimistic flag
attila
parents: 24769
diff changeset
   204
nashorn.option.optimistic.types = {                                                                      \
3bf490e146c3 8044502: Get rid of global optimistic flag
attila
parents: 24769
diff changeset
   205
    name="--optimistic-types",                                                                           \
26979
e02bc4217ece 8059231: Verify that octane raytrace now works with optimistic types turned off. Add better logging for optimistic types in the compiler.
lagergren
parents: 26377
diff changeset
   206
    short_name="-ot",                                                                                    \
26982
ff5dd57a40f2 8059811: Turn off optimistic typing by default and add both ant test-pessimistic and ant test-optimistic sub-test suites.
lagergren
parents: 26979
diff changeset
   207
    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.",                     \
ff5dd57a40f2 8059811: Turn off optimistic typing by default and add both ant test-pessimistic and ant test-optimistic sub-test suites.
lagergren
parents: 26979
diff changeset
   208
    default=true                                                                                         \
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
   209
}
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
   210
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   211
nashorn.option.loader.per.compile = {              \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   212
    name="--loader-per-compile",                   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   213
    is_undocumented=true,                          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   214
    desc="Create a new class loader per compile.", \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   215
    default=true                                   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   216
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   217
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   218
nashorn.option.no.java = {                         \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   219
    name="--no-java",                              \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   220
    short_name="-nj",                              \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   221
    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
   222
    desc="Disable Java support.",                  \
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   223
    default=false                                  \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   224
}
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   225
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
   226
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
   227
    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
   228
    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
   229
    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
   230
    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
   231
    default=false                                    \
16196
58f6f046bb5e 8006983: Introduce a command line option to switch off syntactic extensions of nashorn
sundar
parents: 16151
diff changeset
   232
}
58f6f046bb5e 8006983: Introduce a command line option to switch off syntactic extensions of nashorn
sundar
parents: 16151
diff changeset
   233
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   234
nashorn.option.no.typed.arrays = {                 \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   235
    name="--no-typed-arrays",                      \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   236
    short_name="-nta",                             \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   237
    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
   238
    desc="Disable typed arrays support.",          \
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   239
    default=false                                  \
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   240
}
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18335
diff changeset
   241
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   242
nashorn.option.parse.only = {       \
16770
d16236c11f3d 8007774: Enable code cache again
hannesw
parents: 16523
diff changeset
   243
    name="--parse-only",            \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   244
    is_undocumented=true,           \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   245
    desc="Parse without compiling." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   246
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   247
23767
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   248
nashorn.option.persistent.code.cache = {            \
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   249
    name="--persistent-code-cache",                 \
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   250
    short_name="-pcc",                              \
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   251
    desc="Enable disk cache for compiled scripts.", \
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   252
    is_undocumented=true,                           \
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   253
    default=false                                   \
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   254
}
7c0614b75e23 8038638: Persistent store for compiled scripts
hannesw
parents: 19632
diff changeset
   255
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   256
nashorn.option.profile.callsites = {   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   257
    name="--profile-callsites",        \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   258
    short_name="-pcs",                 \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   259
    is_undocumented=true,              \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   260
    desc="Dump callsite profile data." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   261
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   262
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   263
nashorn.option.print.ast = {            \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   264
    name="--print-ast",                 \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   265
    is_undocumented=true,               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   266
    desc="Print abstract syntax tree."  \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   267
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   268
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   269
nashorn.option.print.lower.ast = {              \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   270
    name="--print-lower-ast",                   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   271
    is_undocumented=true,                       \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   272
    desc="Print lowered abstract syntax tree."  \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   273
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   274
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   275
nashorn.option.print.code = { \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   276
    name="--print-code",      \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents: 19632
diff changeset
   277
    short_name="-pc",         \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   278
    is_undocumented=true,     \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents: 19632
diff changeset
   279
    params="[dir:<output-dir>,function:<name>]", \
f726e9d67629 8035820: Optimistic recompilation
attila
parents: 19632
diff changeset
   280
    type=keyvalues,           \
f726e9d67629 8035820: Optimistic recompilation
attila
parents: 19632
diff changeset
   281
    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
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   282
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   283
17519
19c9d2553e35 8013871: mem usage histograms enabled with compiler logging level set to more specific than or equals to info when --print-mem-usage flag is used
lagergren
parents: 17518
diff changeset
   284
nashorn.option.print.mem.usage = {                            \
19c9d2553e35 8013871: mem usage histograms enabled with compiler logging level set to more specific than or equals to info when --print-mem-usage flag is used
lagergren
parents: 17518
diff changeset
   285
    name="--print-mem-usage",                                 \
19c9d2553e35 8013871: mem usage histograms enabled with compiler logging level set to more specific than or equals to info when --print-mem-usage flag is used
lagergren
parents: 17518
diff changeset
   286
    is_undocumented=true,                                     \
19c9d2553e35 8013871: mem usage histograms enabled with compiler logging level set to more specific than or equals to info when --print-mem-usage flag is used
lagergren
parents: 17518
diff changeset
   287
    desc="Print memory usage of IR after each compile stage." \
19c9d2553e35 8013871: mem usage histograms enabled with compiler logging level set to more specific than or equals to info when --print-mem-usage flag is used
lagergren
parents: 17518
diff changeset
   288
}
19c9d2553e35 8013871: mem usage histograms enabled with compiler logging level set to more specific than or equals to info when --print-mem-usage flag is used
lagergren
parents: 17518
diff changeset
   289
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   290
nashorn.option.print.no.newline = {                     \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   291
    name="--print-no-newline",                          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   292
    is_undocumented=true,                               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   293
    desc="Print function will not print new line char." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   294
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   295
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   296
nashorn.option.print.parse = {   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   297
    name="--print-parse",        \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents: 19632
diff changeset
   298
    short_name="-pp",            \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   299
    is_undocumented=true,        \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   300
    desc="Print the parse tree." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   301
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   302
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   303
nashorn.option.print.lower.parse = {            \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   304
    name="--print-lower-parse",                 \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents: 19632
diff changeset
   305
    short_name="-plp",                          \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   306
    is_undocumented=true,                       \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   307
    desc="Print the parse tree after lowering." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   308
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   309
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   310
nashorn.option.print.symbols = {   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   311
    name="--print-symbols",        \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   312
    is_undocumented=true,          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   313
    desc="Print the symbol table." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   314
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   315
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   316
nashorn.option.D = {                                                          \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   317
    name="-D",                                                                \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   318
    desc="-Dname=value. Set a system property. This option can be repeated.", \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   319
    type=String                                                               \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   320
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   321
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   322
nashorn.option.strict = {              \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   323
    name="-strict",                    \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   324
    desc="Run scripts in strict mode." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   325
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   326
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   327
nashorn.option.scripting = {            \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   328
    name="-scripting",                  \
18335
1b5fdae617cf 8016550: nashorn.option.no.syntax.extensions has the wrong default
sundar
parents: 17776
diff changeset
   329
    desc="Enable scripting features."   \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   330
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   331
26377
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   332
nashorn.option.language = {                      \
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   333
    name="--language",                           \
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   334
    type=String,                                 \
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   335
    params=[es5|es6],                            \
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   336
    default=es5,                                 \
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   337
    desc="Specify ECMAScript language version."  \
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   338
}
028dad61662f 8051889: Implement block scoping in symbol assignment and scope computation
hannesw
parents: 25865
diff changeset
   339
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
   340
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
   341
    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
   342
    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
   343
    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
   344
    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
   345
    desc="Redirect stdout to a filename or to another tty, e.g. stderr." \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   346
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   347
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
   348
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
   349
    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
   350
    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
   351
    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
   352
    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
   353
    desc="Redirect stderr to a filename or to another tty, e.g. stdout." \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   354
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   355
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
   356
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
   357
    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
   358
    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
   359
    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
   360
    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
   361
    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
   362
}
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
   363
17776
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   364
nashorn.option.locale = {                    \
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   365
    name="--locale",                         \
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   366
    short_name="-l",                         \
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   367
    is_undocumented=true,                    \
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   368
    params="<locale>",                       \
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   369
    desc="Set Locale for script execution.", \
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   370
    type=Locale                              \
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   371
}
59fb7b69846d 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
sundar
parents: 17756
diff changeset
   372
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
   373
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
   374
    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
   375
    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
   376
    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
   377
    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
   378
    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
   379
    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
   380
    enterexit [trace callsite enter/exit], objects [print object properties]."   \
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   381
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   382
32895
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   383
nashorn.option.anonymous.classes = {                      \
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   384
    name="--anonymous-classes",                           \
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   385
    is_undocumented=true,                                 \
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   386
    params=[auto|true|false],                             \
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   387
    default=auto,                                         \
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   388
    type=string,                                          \
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   389
    desc="Use VM anonymous classes for compiled scripts." \
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   390
}
5a09b2d3d73a 8138882: Performance regression due to anonymous classloading
hannesw
parents: 30513
diff changeset
   391
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   392
nashorn.option.verify.code = {              \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   393
    name="--verify-code",                   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   394
    is_undocumented=true,                   \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   395
    desc="Verify byte code before running." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   396
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   397
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   398
nashorn.option.version = {                \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   399
    name="-version",                      \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   400
    short_name="-v",                      \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   401
    desc="Print version info of Nashorn." \
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   402
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   403