Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/sun/tools/java/RuntimeConstants.java
38918 views
/*1* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package sun.tools.java;2627/**28* WARNING: The contents of this source file are not part of any29* supported API. Code that depends on them does so at its own risk:30* they are subject to change or removal without notice.31*/32public interface RuntimeConstants {3334/* Signature Characters */35char SIGC_VOID = 'V';36String SIG_VOID = "V";37char SIGC_BOOLEAN = 'Z';38String SIG_BOOLEAN = "Z";39char SIGC_BYTE = 'B';40String SIG_BYTE = "B";41char SIGC_CHAR = 'C';42String SIG_CHAR = "C";43char SIGC_SHORT = 'S';44String SIG_SHORT = "S";45char SIGC_INT = 'I';46String SIG_INT = "I";47char SIGC_LONG = 'J';48String SIG_LONG = "J";49char SIGC_FLOAT = 'F';50String SIG_FLOAT = "F";51char SIGC_DOUBLE = 'D';52String SIG_DOUBLE = "D";53char SIGC_ARRAY = '[';54String SIG_ARRAY = "[";55char SIGC_CLASS = 'L';56String SIG_CLASS = "L";57char SIGC_METHOD = '(';58String SIG_METHOD = "(";59char SIGC_ENDCLASS = ';';60String SIG_ENDCLASS = ";";61char SIGC_ENDMETHOD = ')';62String SIG_ENDMETHOD = ")";63char SIGC_PACKAGE = '/';64String SIG_PACKAGE = "/";6566/* Class File Constants */67int JAVA_MAGIC = 0xcafebabe;68int JAVA_MIN_SUPPORTED_VERSION = 45;69int JAVA_MAX_SUPPORTED_VERSION = 52;70int JAVA_MAX_SUPPORTED_MINOR_VERSION = 0;7172/* Generate class file version for 1.1 by default */73int JAVA_DEFAULT_VERSION = 45;74int JAVA_DEFAULT_MINOR_VERSION = 3;7576/* Constant table */77int CONSTANT_UTF8 = 1;78int CONSTANT_UNICODE = 2;79int CONSTANT_INTEGER = 3;80int CONSTANT_FLOAT = 4;81int CONSTANT_LONG = 5;82int CONSTANT_DOUBLE = 6;83int CONSTANT_CLASS = 7;84int CONSTANT_STRING = 8;85int CONSTANT_FIELD = 9;86int CONSTANT_METHOD = 10;87int CONSTANT_INTERFACEMETHOD = 11;88int CONSTANT_NAMEANDTYPE = 12;89int CONSTANT_METHODHANDLE = 15;90int CONSTANT_METHODTYPE = 16;91int CONSTANT_INVOKEDYNAMIC = 18;9293/* Access and modifier flags */94int ACC_PUBLIC = 0x00000001;95int ACC_PRIVATE = 0x00000002;96int ACC_PROTECTED = 0x00000004;97int ACC_STATIC = 0x00000008;98int ACC_FINAL = 0x00000010;99int ACC_SYNCHRONIZED = 0x00000020;100int ACC_VOLATILE = 0x00000040;101int ACC_TRANSIENT = 0x00000080;102int ACC_NATIVE = 0x00000100;103int ACC_INTERFACE = 0x00000200;104int ACC_ABSTRACT = 0x00000400;105int ACC_SUPER = 0x00000020;106int ACC_STRICT = 0x00000800;107108/* Type codes */109int T_CLASS = 0x00000002;110int T_BOOLEAN = 0x00000004;111int T_CHAR = 0x00000005;112int T_FLOAT = 0x00000006;113int T_DOUBLE = 0x00000007;114int T_BYTE = 0x00000008;115int T_SHORT = 0x00000009;116int T_INT = 0x0000000a;117int T_LONG = 0x0000000b;118119/* Opcodes */120int opc_try = -3;121int opc_dead = -2;122int opc_label = -1;123int opc_nop = 0;124int opc_aconst_null = 1;125int opc_iconst_m1 = 2;126int opc_iconst_0 = 3;127int opc_iconst_1 = 4;128int opc_iconst_2 = 5;129int opc_iconst_3 = 6;130int opc_iconst_4 = 7;131int opc_iconst_5 = 8;132int opc_lconst_0 = 9;133int opc_lconst_1 = 10;134int opc_fconst_0 = 11;135int opc_fconst_1 = 12;136int opc_fconst_2 = 13;137int opc_dconst_0 = 14;138int opc_dconst_1 = 15;139int opc_bipush = 16;140int opc_sipush = 17;141int opc_ldc = 18;142int opc_ldc_w = 19;143int opc_ldc2_w = 20;144int opc_iload = 21;145int opc_lload = 22;146int opc_fload = 23;147int opc_dload = 24;148int opc_aload = 25;149int opc_iload_0 = 26;150int opc_iload_1 = 27;151int opc_iload_2 = 28;152int opc_iload_3 = 29;153int opc_lload_0 = 30;154int opc_lload_1 = 31;155int opc_lload_2 = 32;156int opc_lload_3 = 33;157int opc_fload_0 = 34;158int opc_fload_1 = 35;159int opc_fload_2 = 36;160int opc_fload_3 = 37;161int opc_dload_0 = 38;162int opc_dload_1 = 39;163int opc_dload_2 = 40;164int opc_dload_3 = 41;165int opc_aload_0 = 42;166int opc_aload_1 = 43;167int opc_aload_2 = 44;168int opc_aload_3 = 45;169int opc_iaload = 46;170int opc_laload = 47;171int opc_faload = 48;172int opc_daload = 49;173int opc_aaload = 50;174int opc_baload = 51;175int opc_caload = 52;176int opc_saload = 53;177int opc_istore = 54;178int opc_lstore = 55;179int opc_fstore = 56;180int opc_dstore = 57;181int opc_astore = 58;182int opc_istore_0 = 59;183int opc_istore_1 = 60;184int opc_istore_2 = 61;185int opc_istore_3 = 62;186int opc_lstore_0 = 63;187int opc_lstore_1 = 64;188int opc_lstore_2 = 65;189int opc_lstore_3 = 66;190int opc_fstore_0 = 67;191int opc_fstore_1 = 68;192int opc_fstore_2 = 69;193int opc_fstore_3 = 70;194int opc_dstore_0 = 71;195int opc_dstore_1 = 72;196int opc_dstore_2 = 73;197int opc_dstore_3 = 74;198int opc_astore_0 = 75;199int opc_astore_1 = 76;200int opc_astore_2 = 77;201int opc_astore_3 = 78;202int opc_iastore = 79;203int opc_lastore = 80;204int opc_fastore = 81;205int opc_dastore = 82;206int opc_aastore = 83;207int opc_bastore = 84;208int opc_castore = 85;209int opc_sastore = 86;210int opc_pop = 87;211int opc_pop2 = 88;212int opc_dup = 89;213int opc_dup_x1 = 90;214int opc_dup_x2 = 91;215int opc_dup2 = 92;216int opc_dup2_x1 = 93;217int opc_dup2_x2 = 94;218int opc_swap = 95;219int opc_iadd = 96;220int opc_ladd = 97;221int opc_fadd = 98;222int opc_dadd = 99;223int opc_isub = 100;224int opc_lsub = 101;225int opc_fsub = 102;226int opc_dsub = 103;227int opc_imul = 104;228int opc_lmul = 105;229int opc_fmul = 106;230int opc_dmul = 107;231int opc_idiv = 108;232int opc_ldiv = 109;233int opc_fdiv = 110;234int opc_ddiv = 111;235int opc_irem = 112;236int opc_lrem = 113;237int opc_frem = 114;238int opc_drem = 115;239int opc_ineg = 116;240int opc_lneg = 117;241int opc_fneg = 118;242int opc_dneg = 119;243int opc_ishl = 120;244int opc_lshl = 121;245int opc_ishr = 122;246int opc_lshr = 123;247int opc_iushr = 124;248int opc_lushr = 125;249int opc_iand = 126;250int opc_land = 127;251int opc_ior = 128;252int opc_lor = 129;253int opc_ixor = 130;254int opc_lxor = 131;255int opc_iinc = 132;256int opc_i2l = 133;257int opc_i2f = 134;258int opc_i2d = 135;259int opc_l2i = 136;260int opc_l2f = 137;261int opc_l2d = 138;262int opc_f2i = 139;263int opc_f2l = 140;264int opc_f2d = 141;265int opc_d2i = 142;266int opc_d2l = 143;267int opc_d2f = 144;268int opc_i2b = 145;269int opc_i2c = 146;270int opc_i2s = 147;271int opc_lcmp = 148;272int opc_fcmpl = 149;273int opc_fcmpg = 150;274int opc_dcmpl = 151;275int opc_dcmpg = 152;276int opc_ifeq = 153;277int opc_ifne = 154;278int opc_iflt = 155;279int opc_ifge = 156;280int opc_ifgt = 157;281int opc_ifle = 158;282int opc_if_icmpeq = 159;283int opc_if_icmpne = 160;284int opc_if_icmplt = 161;285int opc_if_icmpge = 162;286int opc_if_icmpgt = 163;287int opc_if_icmple = 164;288int opc_if_acmpeq = 165;289int opc_if_acmpne = 166;290int opc_goto = 167;291int opc_jsr = 168;292int opc_ret = 169;293int opc_tableswitch = 170;294int opc_lookupswitch = 171;295int opc_ireturn = 172;296int opc_lreturn = 173;297int opc_freturn = 174;298int opc_dreturn = 175;299int opc_areturn = 176;300int opc_return = 177;301int opc_getstatic = 178;302int opc_putstatic = 179;303int opc_getfield = 180;304int opc_putfield = 181;305int opc_invokevirtual = 182;306int opc_invokespecial = 183;307int opc_invokestatic = 184;308int opc_invokeinterface = 185;309int opc_invokedynamic = 186;310int opc_new = 187;311int opc_newarray = 188;312int opc_anewarray = 189;313int opc_arraylength = 190;314int opc_athrow = 191;315int opc_checkcast = 192;316int opc_instanceof = 193;317int opc_monitorenter = 194;318int opc_monitorexit = 195;319int opc_wide = 196;320int opc_multianewarray = 197;321int opc_ifnull = 198;322int opc_ifnonnull = 199;323int opc_goto_w = 200;324int opc_jsr_w = 201;325int opc_breakpoint = 202;326327/* Opcode Names */328String opcNames[] = {329"nop",330"aconst_null",331"iconst_m1",332"iconst_0",333"iconst_1",334"iconst_2",335"iconst_3",336"iconst_4",337"iconst_5",338"lconst_0",339"lconst_1",340"fconst_0",341"fconst_1",342"fconst_2",343"dconst_0",344"dconst_1",345"bipush",346"sipush",347"ldc",348"ldc_w",349"ldc2_w",350"iload",351"lload",352"fload",353"dload",354"aload",355"iload_0",356"iload_1",357"iload_2",358"iload_3",359"lload_0",360"lload_1",361"lload_2",362"lload_3",363"fload_0",364"fload_1",365"fload_2",366"fload_3",367"dload_0",368"dload_1",369"dload_2",370"dload_3",371"aload_0",372"aload_1",373"aload_2",374"aload_3",375"iaload",376"laload",377"faload",378"daload",379"aaload",380"baload",381"caload",382"saload",383"istore",384"lstore",385"fstore",386"dstore",387"astore",388"istore_0",389"istore_1",390"istore_2",391"istore_3",392"lstore_0",393"lstore_1",394"lstore_2",395"lstore_3",396"fstore_0",397"fstore_1",398"fstore_2",399"fstore_3",400"dstore_0",401"dstore_1",402"dstore_2",403"dstore_3",404"astore_0",405"astore_1",406"astore_2",407"astore_3",408"iastore",409"lastore",410"fastore",411"dastore",412"aastore",413"bastore",414"castore",415"sastore",416"pop",417"pop2",418"dup",419"dup_x1",420"dup_x2",421"dup2",422"dup2_x1",423"dup2_x2",424"swap",425"iadd",426"ladd",427"fadd",428"dadd",429"isub",430"lsub",431"fsub",432"dsub",433"imul",434"lmul",435"fmul",436"dmul",437"idiv",438"ldiv",439"fdiv",440"ddiv",441"irem",442"lrem",443"frem",444"drem",445"ineg",446"lneg",447"fneg",448"dneg",449"ishl",450"lshl",451"ishr",452"lshr",453"iushr",454"lushr",455"iand",456"land",457"ior",458"lor",459"ixor",460"lxor",461"iinc",462"i2l",463"i2f",464"i2d",465"l2i",466"l2f",467"l2d",468"f2i",469"f2l",470"f2d",471"d2i",472"d2l",473"d2f",474"i2b",475"i2c",476"i2s",477"lcmp",478"fcmpl",479"fcmpg",480"dcmpl",481"dcmpg",482"ifeq",483"ifne",484"iflt",485"ifge",486"ifgt",487"ifle",488"if_icmpeq",489"if_icmpne",490"if_icmplt",491"if_icmpge",492"if_icmpgt",493"if_icmple",494"if_acmpeq",495"if_acmpne",496"goto",497"jsr",498"ret",499"tableswitch",500"lookupswitch",501"ireturn",502"lreturn",503"freturn",504"dreturn",505"areturn",506"return",507"getstatic",508"putstatic",509"getfield",510"putfield",511"invokevirtual",512"invokespecial",513"invokestatic",514"invokeinterface",515"invokedynamic",516"new",517"newarray",518"anewarray",519"arraylength",520"athrow",521"checkcast",522"instanceof",523"monitorenter",524"monitorexit",525"wide",526"multianewarray",527"ifnull",528"ifnonnull",529"goto_w",530"jsr_w",531"breakpoint"532};533534/* Opcode Lengths */535int opcLengths[] = {5361,5371,5381,5391,5401,5411,5421,5431,5441,5451,5461,5471,5481,5491,5501,5511,5522,5533,5542,5553,5563,5572,5582,5592,5602,5612,5621,5631,5641,5651,5661,5671,5681,5691,5701,5711,5721,5731,5741,5751,5761,5771,5781,5791,5801,5811,5821,5831,5841,5851,5861,5871,5881,5891,5902,5912,5922,5932,5942,5951,5961,5971,5981,5991,6001,6011,6021,6031,6041,6051,6061,6071,6081,6091,6101,6111,6121,6131,6141,6151,6161,6171,6181,6191,6201,6211,6221,6231,6241,6251,6261,6271,6281,6291,6301,6311,6321,6331,6341,6351,6361,6371,6381,6391,6401,6411,6421,6431,6441,6451,6461,6471,6481,6491,6501,6511,6521,6531,6541,6551,6561,6571,6581,6591,6601,6611,6621,6631,6641,6651,6661,6671,6683,6691,6701,6711,6721,6731,6741,6751,6761,6771,6781,6791,6801,6811,6821,6831,6841,6851,6861,6871,6881,6893,6903,6913,6923,6933,6943,6953,6963,6973,6983,6993,7003,7013,7023,7033,7043,7052,70699,70799,7081,7091,7101,7111,7121,7131,7143,7153,7163,7173,7183,7193,7203,7215,7225,7233,7242,7253,7261,7271,7283,7293,7301,7311,7320,7334,7343,7353,7365,7375,7381739};740741}742743744