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