annotate agent/src/share/classes/sun/jvm/hotspot/asm/x86/X86Opcodes.java @ 1913:3b2dea75431e

6984311: JSR 292 needs optional bootstrap method parameters Summary: Allow CONSTANT_InvokeDynamic nodes to have any number of extra operands. Reviewed-by: twisti
author jrose
date Sat, 30 Oct 2010 13:08:23 -0700
parents c18cbe5936b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 package sun.jvm.hotspot.asm.x86;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 import sun.jvm.hotspot.asm.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
28
a61af66fc99e Initial load
duke
parents:
diff changeset
29 //Please refer to IA-32 Intel Architecture Software Developer's Manual Volume 2
a61af66fc99e Initial load
duke
parents:
diff changeset
30 //APPENDIX A - A.1.
a61af66fc99e Initial load
duke
parents:
diff changeset
31
a61af66fc99e Initial load
duke
parents:
diff changeset
32 public interface X86Opcodes
a61af66fc99e Initial load
duke
parents:
diff changeset
33 extends RTLDataTypes, RTLOperations {
a61af66fc99e Initial load
duke
parents:
diff changeset
34 public static final int b_mode = 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
35 public static final int v_mode = 2;
a61af66fc99e Initial load
duke
parents:
diff changeset
36 public static final int w_mode = 3;
a61af66fc99e Initial load
duke
parents:
diff changeset
37 public static final int d_mode = 4;
a61af66fc99e Initial load
duke
parents:
diff changeset
38 public static final int p_mode = 5;
a61af66fc99e Initial load
duke
parents:
diff changeset
39
a61af66fc99e Initial load
duke
parents:
diff changeset
40 public static final int dq_mode = 6; //SSE: double-quadword
a61af66fc99e Initial load
duke
parents:
diff changeset
41 public static final int pi_mode = 7; //SSE: quadword MMX register
a61af66fc99e Initial load
duke
parents:
diff changeset
42 public static final int ps_mode = 8; //SSE: 128bit single precision floating point data
a61af66fc99e Initial load
duke
parents:
diff changeset
43 public static final int pd_mode = 9; //SSE: 128bit double precision floating point data
a61af66fc99e Initial load
duke
parents:
diff changeset
44 public static final int sd_mode = 10; //SSE: 128bit scalar double precision floating point data
a61af66fc99e Initial load
duke
parents:
diff changeset
45 public static final int q_mode = 11; //SSE: quadword
a61af66fc99e Initial load
duke
parents:
diff changeset
46 public static final int ss_mode = 12; //SSE: scalar element of 128bit floating data
a61af66fc99e Initial load
duke
parents:
diff changeset
47 public static final int si_mode = 13; //SSE: doubleword integer register (e.g. eax)
a61af66fc99e Initial load
duke
parents:
diff changeset
48 public static final int s_mode = 14; //SSE: 6 byte pseudo descriptor
a61af66fc99e Initial load
duke
parents:
diff changeset
49
a61af66fc99e Initial load
duke
parents:
diff changeset
50 public static final int INVALID_OPERANDTYPE = -1;
a61af66fc99e Initial load
duke
parents:
diff changeset
51
a61af66fc99e Initial load
duke
parents:
diff changeset
52 public static final int EAX = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
53 public static final int ECX = 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
54 public static final int EDX = 2;
a61af66fc99e Initial load
duke
parents:
diff changeset
55 public static final int EBX = 3;
a61af66fc99e Initial load
duke
parents:
diff changeset
56 public static final int ESP = 4;
a61af66fc99e Initial load
duke
parents:
diff changeset
57 public static final int EBP = 5;
a61af66fc99e Initial load
duke
parents:
diff changeset
58 public static final int ESI = 6;
a61af66fc99e Initial load
duke
parents:
diff changeset
59 public static final int EDI = 7;
a61af66fc99e Initial load
duke
parents:
diff changeset
60
a61af66fc99e Initial load
duke
parents:
diff changeset
61 public static final int AX = 8;
a61af66fc99e Initial load
duke
parents:
diff changeset
62 public static final int CX = 9;
a61af66fc99e Initial load
duke
parents:
diff changeset
63 public static final int DX = 10;
a61af66fc99e Initial load
duke
parents:
diff changeset
64 public static final int BX = 11;
a61af66fc99e Initial load
duke
parents:
diff changeset
65 public static final int SP = 12;
a61af66fc99e Initial load
duke
parents:
diff changeset
66 public static final int BP = 13;
a61af66fc99e Initial load
duke
parents:
diff changeset
67 public static final int SI = 14;
a61af66fc99e Initial load
duke
parents:
diff changeset
68 public static final int DI = 15;
a61af66fc99e Initial load
duke
parents:
diff changeset
69
a61af66fc99e Initial load
duke
parents:
diff changeset
70 public static final int AL = 16;
a61af66fc99e Initial load
duke
parents:
diff changeset
71 public static final int CL = 17;
a61af66fc99e Initial load
duke
parents:
diff changeset
72 public static final int DL = 18;
a61af66fc99e Initial load
duke
parents:
diff changeset
73 public static final int BL = 19;
a61af66fc99e Initial load
duke
parents:
diff changeset
74 public static final int AH = 20;
a61af66fc99e Initial load
duke
parents:
diff changeset
75 public static final int CH = 21;
a61af66fc99e Initial load
duke
parents:
diff changeset
76 public static final int DH = 22;
a61af66fc99e Initial load
duke
parents:
diff changeset
77 public static final int BH = 23;
a61af66fc99e Initial load
duke
parents:
diff changeset
78
a61af66fc99e Initial load
duke
parents:
diff changeset
79 public static final int ES = 24;
a61af66fc99e Initial load
duke
parents:
diff changeset
80 public static final int CS = 25;
a61af66fc99e Initial load
duke
parents:
diff changeset
81 public static final int SS = 26;
a61af66fc99e Initial load
duke
parents:
diff changeset
82 public static final int DS = 27;
a61af66fc99e Initial load
duke
parents:
diff changeset
83 public static final int FS = 28;
a61af66fc99e Initial load
duke
parents:
diff changeset
84 public static final int GS = 29;
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 //Addressing modes
a61af66fc99e Initial load
duke
parents:
diff changeset
87 public static final int ADDR_E = 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
88 public static final int ADDR_I = 2;
a61af66fc99e Initial load
duke
parents:
diff changeset
89 public static final int ADDR_DIR = 3;
a61af66fc99e Initial load
duke
parents:
diff changeset
90 public static final int ADDR_J = 4;
a61af66fc99e Initial load
duke
parents:
diff changeset
91 public static final int ADDR_G = 5;
a61af66fc99e Initial load
duke
parents:
diff changeset
92 public static final int ADDR_REG = 6;
a61af66fc99e Initial load
duke
parents:
diff changeset
93 public static final int ADDR_ESDI = 7;
a61af66fc99e Initial load
duke
parents:
diff changeset
94 public static final int ADDR_DSSI = 8;
a61af66fc99e Initial load
duke
parents:
diff changeset
95 public static final int ADDR_SEG = 9;
a61af66fc99e Initial load
duke
parents:
diff changeset
96 public static final int ADDR_OFF = 10;
a61af66fc99e Initial load
duke
parents:
diff changeset
97 public static final int INDIR_REG = 11;
a61af66fc99e Initial load
duke
parents:
diff changeset
98 public static final int ADDR_INDIR_E = 12;
a61af66fc99e Initial load
duke
parents:
diff changeset
99 public static final int ADDR_R = 13; //mod field selects a register
a61af66fc99e Initial load
duke
parents:
diff changeset
100 public static final int ADDR_C = 14; //reg field selects a control register
a61af66fc99e Initial load
duke
parents:
diff changeset
101 public static final int ADDR_D = 15; //reg field selects debug register
a61af66fc99e Initial load
duke
parents:
diff changeset
102 public static final int ADDR_T = 16; //reg field selects test register
a61af66fc99e Initial load
duke
parents:
diff changeset
103 public static final int ADDR_M = 17; //modR/M refer only to memory
a61af66fc99e Initial load
duke
parents:
diff changeset
104 public static final int ADDR_FPREG = 18;
a61af66fc99e Initial load
duke
parents:
diff changeset
105 //SSE
a61af66fc99e Initial load
duke
parents:
diff changeset
106 public static final int ADDR_W = 19; //modR/M: either a 128 bit XMM register or memory
a61af66fc99e Initial load
duke
parents:
diff changeset
107 public static final int ADDR_Q = 20; //modR/M: either a 128 bit MMX register or memory
a61af66fc99e Initial load
duke
parents:
diff changeset
108 public static final int ADDR_V = 21; //reg field of modR/M selects a 128-bit XMM register
a61af66fc99e Initial load
duke
parents:
diff changeset
109 public static final int ADDR_P = 22; //reg field of modR/M selects a 64-bit MMX register
a61af66fc99e Initial load
duke
parents:
diff changeset
110
a61af66fc99e Initial load
duke
parents:
diff changeset
111 public static final int INVALID_ADDRMODE = -1;
a61af66fc99e Initial load
duke
parents:
diff changeset
112
a61af66fc99e Initial load
duke
parents:
diff changeset
113 //Refer to chapter 2 - Instruction Format
a61af66fc99e Initial load
duke
parents:
diff changeset
114 //Prefix codes
a61af66fc99e Initial load
duke
parents:
diff changeset
115 public static final int PREFIX_REPZ = 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
116 public static final int PREFIX_REPNZ = 2;
a61af66fc99e Initial load
duke
parents:
diff changeset
117 public static final int PREFIX_LOCK = 4;
a61af66fc99e Initial load
duke
parents:
diff changeset
118 public static final int PREFIX_CS = 8;
a61af66fc99e Initial load
duke
parents:
diff changeset
119 public static final int PREFIX_SS = 0x10;
a61af66fc99e Initial load
duke
parents:
diff changeset
120 public static final int PREFIX_DS = 0x20;
a61af66fc99e Initial load
duke
parents:
diff changeset
121 public static final int PREFIX_ES = 0x40;
a61af66fc99e Initial load
duke
parents:
diff changeset
122 public static final int PREFIX_FS = 0x80;
a61af66fc99e Initial load
duke
parents:
diff changeset
123 public static final int PREFIX_GS = 0x100;
a61af66fc99e Initial load
duke
parents:
diff changeset
124 public static final int PREFIX_DATA = 0x200;
a61af66fc99e Initial load
duke
parents:
diff changeset
125 public static final int PREFIX_ADR = 0x400;
a61af66fc99e Initial load
duke
parents:
diff changeset
126 public static final int PREFIX_FWAIT = 0x800;
a61af66fc99e Initial load
duke
parents:
diff changeset
127 }