nashorn/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/StringConstants.java
author hannesw
Fri, 25 Nov 2016 14:20:24 +0100
changeset 42376 8604f1a50c30
parent 36517 41a1c20eb619
permissions -rw-r--r--
8170322: Specialized functions convert booleans to numbers Reviewed-by: jlaskey, attila
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
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    26
package jdk.nashorn.internal.tools.nasgen;
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    27
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    28
import java.lang.invoke.MethodHandle;
24778
2ff5d7041566 8044638: Tidy up Nashorn codebase for code standards
attila
parents: 24769
diff changeset
    29
import java.util.ArrayList;
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    30
import java.util.Collection;
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    31
import java.util.Collections;
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    32
import java.util.List;
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    33
import jdk.internal.org.objectweb.asm.Type;
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    34
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    35
/**
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    36
 * String constants used for code generation/instrumentation.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    37
 */
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    38
@SuppressWarnings("javadoc")
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    39
public interface StringConstants {
36517
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    40
    static final String NASHORN_INTERNAL = "jdk/nashorn/internal/";
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    41
    static final String OBJ_PKG = NASHORN_INTERNAL + "objects/";
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    42
    static final String OBJ_ANNO_PKG = OBJ_PKG + "annotations/";
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    43
    static final String RUNTIME_PKG = NASHORN_INTERNAL + "runtime/";
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    44
    static final String SCRIPTS_PKG = NASHORN_INTERNAL + "scripts/";
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    45
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    46
    // standard jdk types, methods
26768
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    47
    static final Type TYPE_METHODHANDLE         = Type.getType(MethodHandle.class);
36517
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    48
    static final Type TYPE_SPECIALIZATION       = Type.getType("L" + RUNTIME_PKG + "Specialization;");
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    49
    static final Type TYPE_SPECIALIZATION_ARRAY = Type.getType("[L" + RUNTIME_PKG + "Specialization;");
26768
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    50
    static final Type TYPE_OBJECT               = Type.getType(Object.class);
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    51
    static final Type TYPE_STRING               = Type.getType(String.class);
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    52
    static final Type TYPE_CLASS                = Type.getType(Class.class);
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    53
    static final Type TYPE_COLLECTION           = Type.getType(Collection.class);
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    54
    static final Type TYPE_COLLECTIONS          = Type.getType(Collections.class);
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    55
    static final Type TYPE_ARRAYLIST            = Type.getType(ArrayList.class);
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    56
    static final Type TYPE_LIST                 = Type.getType(List.class);
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    57
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    58
    static final String CLINIT = "<clinit>";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    59
    static final String INIT = "<init>";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    60
    static final String DEFAULT_INIT_DESC = Type.getMethodDescriptor(Type.VOID_TYPE);
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    61
26768
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
    62
    static final String SPECIALIZATION_TYPE = TYPE_SPECIALIZATION.getInternalName();
42376
8604f1a50c30 8170322: Specialized functions convert booleans to numbers
hannesw
parents: 36517
diff changeset
    63
    static final String SPECIALIZATION_INIT2 = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_METHODHANDLE, Type.BOOLEAN_TYPE, Type.BOOLEAN_TYPE);
8604f1a50c30 8170322: Specialized functions convert booleans to numbers
hannesw
parents: 36517
diff changeset
    64
    static final String SPECIALIZATION_INIT3 = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_METHODHANDLE, TYPE_CLASS, Type.BOOLEAN_TYPE, Type.BOOLEAN_TYPE);
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    65
    static final String OBJECT_TYPE = TYPE_OBJECT.getInternalName();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    66
    static final String OBJECT_DESC = TYPE_OBJECT.getDescriptor();
23763
950d8bc0554f 8038456: improve nasgen type checks and use specific return type for @Function, @SpecializedFunctio methods
sundar
parents: 23084
diff changeset
    67
    static final String STRING_DESC = TYPE_STRING.getDescriptor();
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    68
    static final String OBJECT_ARRAY_DESC = Type.getDescriptor(Object[].class);
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    69
    static final String ARRAYLIST_TYPE = TYPE_ARRAYLIST.getInternalName();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    70
    static final String COLLECTION_TYPE = TYPE_COLLECTION.getInternalName();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    71
    static final String COLLECTIONS_TYPE = TYPE_COLLECTIONS.getInternalName();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    72
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    73
    // java.util.Collection.add(Object)
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    74
    static final String COLLECTION_ADD = "add";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    75
    static final String COLLECTION_ADD_DESC = Type.getMethodDescriptor(Type.BOOLEAN_TYPE, TYPE_OBJECT);
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    76
    // java.util.ArrayList.<init>(int)
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    77
    static final String ARRAYLIST_INIT_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, Type.INT_TYPE);
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    78
    // java.util.Collections.EMPTY_LIST
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    79
    static final String COLLECTIONS_EMPTY_LIST = "EMPTY_LIST";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    80
    static final String LIST_DESC = TYPE_LIST.getDescriptor();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    81
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    82
    // Nashorn types, methods
36517
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    83
    static final Type TYPE_ACCESSORPROPERTY   = Type.getType("L" + RUNTIME_PKG + "AccessorProperty;");
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    84
    static final Type TYPE_PROPERTYMAP        = Type.getType("L" + RUNTIME_PKG + "PropertyMap;");
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    85
    static final Type TYPE_PROTOTYPEOBJECT    = Type.getType("L" + RUNTIME_PKG + "PrototypeObject;");
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    86
    static final Type TYPE_SCRIPTFUNCTION     = Type.getType("L" + RUNTIME_PKG + "ScriptFunction;");
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    87
    static final Type TYPE_SCRIPTOBJECT       = Type.getType("L" + RUNTIME_PKG + "ScriptObject;");
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    88
    static final Type TYPE_NATIVESYMBOL       = Type.getType("L" + OBJ_PKG + "NativeSymbol;");
41a1c20eb619 8142968: Module System implementation
alanb
parents: 36023
diff changeset
    89
    static final Type TYPE_SYMBOL             = Type.getType("L" + RUNTIME_PKG + "Symbol;");
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    90
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    91
    static final String PROTOTYPE_SUFFIX = "$Prototype";
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    92
    static final String CONSTRUCTOR_SUFFIX = "$Constructor";
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    93
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    94
    // This field name is known to Nashorn runtime (Context).
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    95
    // Synchronize the name change, if needed at all.
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    96
    static final String PROPERTYMAP_FIELD_NAME = "$nasgenmap$";
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    97
    static final String $CLINIT$ = "$clinit$";
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    98
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
    99
    // AccessorProperty
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   100
    static final String ACCESSORPROPERTY_TYPE = TYPE_ACCESSORPROPERTY.getInternalName();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   101
    static final String ACCESSORPROPERTY_CREATE = "create";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   102
    static final String ACCESSORPROPERTY_CREATE_DESC =
36023
528cc67f1289 8147558: Add support for ES6 collections
hannesw
parents: 34844
diff changeset
   103
        Type.getMethodDescriptor(TYPE_ACCESSORPROPERTY, TYPE_OBJECT, Type.INT_TYPE, TYPE_METHODHANDLE, TYPE_METHODHANDLE);
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   104
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   105
    // PropertyMap
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   106
    static final String PROPERTYMAP_TYPE = TYPE_PROPERTYMAP.getInternalName();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   107
    static final String PROPERTYMAP_DESC = TYPE_PROPERTYMAP.getDescriptor();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   108
    static final String PROPERTYMAP_NEWMAP = "newMap";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   109
    static final String PROPERTYMAP_NEWMAP_DESC = Type.getMethodDescriptor(TYPE_PROPERTYMAP, TYPE_COLLECTION);
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   110
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   111
    // PrototypeObject
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   112
    static final String PROTOTYPEOBJECT_TYPE = TYPE_PROTOTYPEOBJECT.getInternalName();
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   113
    static final String PROTOTYPEOBJECT_SETCONSTRUCTOR = "setConstructor";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   114
    static final String PROTOTYPEOBJECT_SETCONSTRUCTOR_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_OBJECT, TYPE_OBJECT);
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   115
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   116
    // ScriptFunction
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   117
    static final String SCRIPTFUNCTION_TYPE = TYPE_SCRIPTFUNCTION.getInternalName();
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   118
    static final String SCRIPTFUNCTION_SETARITY = "setArity";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   119
    static final String SCRIPTFUNCTION_SETARITY_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, Type.INT_TYPE);
34844
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents: 34735
diff changeset
   120
    static final String SCRIPTFUNCTION_SETDOCUMENTATIONKEY = "setDocumentationKey";
31c026e00569 8146251: Avoid annotation to specify documentation for JS builtin functions
sundar
parents: 34735
diff changeset
   121
    static final String SCRIPTFUNCTION_SETDOCUMENTATIONKEY_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING);
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   122
    static final String SCRIPTFUNCTION_SETPROTOTYPE = "setPrototype";
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   123
    static final String SCRIPTFUNCTION_SETPROTOTYPE_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_OBJECT);
32527
b105632002c5 8027137: Merge ScriptFunction and ScriptFunctionImpl
sundar
parents: 26768
diff changeset
   124
    static final String SCRIPTFUNCTION_CREATEBUILTIN = "createBuiltin";
b105632002c5 8027137: Merge ScriptFunction and ScriptFunctionImpl
sundar
parents: 26768
diff changeset
   125
    static final String SCRIPTFUNCTION_CREATEBUILTIN_DESC =
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   126
        Type.getMethodDescriptor(TYPE_SCRIPTFUNCTION, TYPE_STRING, TYPE_METHODHANDLE);
32527
b105632002c5 8027137: Merge ScriptFunction and ScriptFunctionImpl
sundar
parents: 26768
diff changeset
   127
    static final String SCRIPTFUNCTION_CREATEBUILTIN_SPECS_DESC =
26768
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
   128
        Type.getMethodDescriptor(TYPE_SCRIPTFUNCTION, TYPE_STRING, TYPE_METHODHANDLE, TYPE_SPECIALIZATION_ARRAY);
32527
b105632002c5 8027137: Merge ScriptFunction and ScriptFunctionImpl
sundar
parents: 26768
diff changeset
   129
    static final String SCRIPTFUNCTION_INIT_DESC3 =
26768
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
   130
        Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING, TYPE_METHODHANDLE, TYPE_SPECIALIZATION_ARRAY);
32527
b105632002c5 8027137: Merge ScriptFunction and ScriptFunctionImpl
sundar
parents: 26768
diff changeset
   131
    static final String SCRIPTFUNCTION_INIT_DESC4 =
26768
751b0f427090 8025435: Optimistic builtins support, implemented initial optimistic versions of push, pop, and charCodeAt
lagergren
parents: 24778
diff changeset
   132
        Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_STRING, TYPE_METHODHANDLE, TYPE_PROPERTYMAP, TYPE_SPECIALIZATION_ARRAY);
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   133
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   134
    // ScriptObject
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   135
    static final String SCRIPTOBJECT_TYPE = TYPE_SCRIPTOBJECT.getInternalName();
23763
950d8bc0554f 8038456: improve nasgen type checks and use specific return type for @Function, @SpecializedFunctio methods
sundar
parents: 23084
diff changeset
   136
    static final String SCRIPTOBJECT_DESC = TYPE_SCRIPTOBJECT.getDescriptor();
18855
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   137
    static final String SCRIPTOBJECT_INIT_DESC = Type.getMethodDescriptor(Type.VOID_TYPE, TYPE_PROPERTYMAP);
408663ef8f66 8020015: shared PropertyMaps should not be used without duplication
sundar
parents: 18852
diff changeset
   138
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   139
    static final String GETTER_PREFIX = "G$";
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   140
    static final String SETTER_PREFIX = "S$";
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   141
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   142
    // ScriptObject.getClassName() method.
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   143
    static final String GET_CLASS_NAME = "getClassName";
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   144
    static final String GET_CLASS_NAME_DESC = Type.getMethodDescriptor(TYPE_STRING);
36023
528cc67f1289 8147558: Add support for ES6 collections
hannesw
parents: 34844
diff changeset
   145
528cc67f1289 8147558: Add support for ES6 collections
hannesw
parents: 34844
diff changeset
   146
    // NativeSymbol
528cc67f1289 8147558: Add support for ES6 collections
hannesw
parents: 34844
diff changeset
   147
    static final String NATIVESYMBOL_TYPE = TYPE_NATIVESYMBOL.getInternalName();
528cc67f1289 8147558: Add support for ES6 collections
hannesw
parents: 34844
diff changeset
   148
    static final String SYMBOL_DESC = TYPE_SYMBOL.getDescriptor();
528cc67f1289 8147558: Add support for ES6 collections
hannesw
parents: 34844
diff changeset
   149
    static final String SYMBOL_PREFIX = "@@";
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
   150
}