annotate agent/src/share/classes/sun/jvm/hotspot/debugger/win32/coff/SectionFlags.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) 2000, 2001, 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.debugger.win32.coff;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 /** Constants indicating attributes of the section. (Some of the
a61af66fc99e Initial load
duke
parents:
diff changeset
28 descriptions are taken directly from Microsoft's documentation and
a61af66fc99e Initial load
duke
parents:
diff changeset
29 are copyrighted by Microsoft.) */
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 public interface SectionFlags {
a61af66fc99e Initial load
duke
parents:
diff changeset
32 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
33 public static final int IMAGE_SCN_TYPE_REG = 0x00000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
34
a61af66fc99e Initial load
duke
parents:
diff changeset
35 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
36 public static final int IMAGE_SCN_TYPE_DSECT = 0x00000001;
a61af66fc99e Initial load
duke
parents:
diff changeset
37
a61af66fc99e Initial load
duke
parents:
diff changeset
38 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
39 public static final int IMAGE_SCN_TYPE_NOLOAD = 0x00000002;
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
42 public static final int IMAGE_SCN_TYPE_GROUP = 0x00000004;
a61af66fc99e Initial load
duke
parents:
diff changeset
43
a61af66fc99e Initial load
duke
parents:
diff changeset
44 /** Section should not be padded to next boundary. This is obsolete
a61af66fc99e Initial load
duke
parents:
diff changeset
45 and replaced by IMAGE_SCN_ALIGN_1BYTES. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
46 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
47 public static final int IMAGE_SCN_TYPE_NO_PAD = 0x00000008;
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
50 public static final int IMAGE_SCN_TYPE_COPY = 0x00000010;
a61af66fc99e Initial load
duke
parents:
diff changeset
51
a61af66fc99e Initial load
duke
parents:
diff changeset
52 /** Section contains executable code. */
a61af66fc99e Initial load
duke
parents:
diff changeset
53 public static final int IMAGE_SCN_CNT_CODE = 0x00000020;
a61af66fc99e Initial load
duke
parents:
diff changeset
54
a61af66fc99e Initial load
duke
parents:
diff changeset
55 /** Section contains initialized data. */
a61af66fc99e Initial load
duke
parents:
diff changeset
56 public static final int IMAGE_SCN_CNT_INITIALIZED_DATA = 0x00000040;
a61af66fc99e Initial load
duke
parents:
diff changeset
57
a61af66fc99e Initial load
duke
parents:
diff changeset
58 /** Section contains uninitialized data. */
a61af66fc99e Initial load
duke
parents:
diff changeset
59 public static final int IMAGE_SCN_CNT_UNINITIALIZED_DATA = 0x00000080;
a61af66fc99e Initial load
duke
parents:
diff changeset
60
a61af66fc99e Initial load
duke
parents:
diff changeset
61 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
62 public static final int IMAGE_SCN_LNK_OTHER = 0x00000100;
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 /** Section contains comments or other information. The .drectve
a61af66fc99e Initial load
duke
parents:
diff changeset
65 section has this type. This is valid for object files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
66 public static final int IMAGE_SCN_LNK_INFO = 0x00000200;
a61af66fc99e Initial load
duke
parents:
diff changeset
67
a61af66fc99e Initial load
duke
parents:
diff changeset
68 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
69 public static final int IMAGE_SCN_TYPE_OVER = 0x00000400;
a61af66fc99e Initial load
duke
parents:
diff changeset
70
a61af66fc99e Initial load
duke
parents:
diff changeset
71 /** Section will not become part of the image. This is valid for
a61af66fc99e Initial load
duke
parents:
diff changeset
72 object files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
73 public static final int IMAGE_SCN_LNK_REMOVE = 0x00000800;
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 /** Section contains COMDAT data; see {@link
a61af66fc99e Initial load
duke
parents:
diff changeset
76 sun.jvm.hotspot.debugger.win32.coff.COMDATSelectionTypes}. This is valid
a61af66fc99e Initial load
duke
parents:
diff changeset
77 for object files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
78 public static final int IMAGE_SCN_LNK_COMDAT = 0x00001000;
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
81 public static final int IMAGE_SCN_MEM_FARDATA = 0x00008000;
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
84 public static final int IMAGE_SCN_MEM_PURGEABLE = 0x00020000;
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
87 public static final int IMAGE_SCN_MEM_16BIT = 0x00020000;
a61af66fc99e Initial load
duke
parents:
diff changeset
88
a61af66fc99e Initial load
duke
parents:
diff changeset
89 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
90 public static final int IMAGE_SCN_MEM_LOCKED = 0x00040000;
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 /** Reserved for future use. */
a61af66fc99e Initial load
duke
parents:
diff changeset
93 public static final int IMAGE_SCN_MEM_PRELOAD = 0x00080000;
a61af66fc99e Initial load
duke
parents:
diff changeset
94
a61af66fc99e Initial load
duke
parents:
diff changeset
95 /** Align data on a 1-byte boundary. This is valid for object files
a61af66fc99e Initial load
duke
parents:
diff changeset
96 only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
97 public static final int IMAGE_SCN_ALIGN_1BYTES = 0x00100000;
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99 /** Align data on a 2-byte boundary. This is valid for object files
a61af66fc99e Initial load
duke
parents:
diff changeset
100 only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
101 public static final int IMAGE_SCN_ALIGN_2BYTES = 0x00200000;
a61af66fc99e Initial load
duke
parents:
diff changeset
102
a61af66fc99e Initial load
duke
parents:
diff changeset
103 /** Align data on a 4-byte boundary. This is valid for object files
a61af66fc99e Initial load
duke
parents:
diff changeset
104 only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
105 public static final int IMAGE_SCN_ALIGN_4BYTES = 0x00300000;
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 /** Align data on a 8-byte boundary. This is valid for object files
a61af66fc99e Initial load
duke
parents:
diff changeset
108 only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
109 public static final int IMAGE_SCN_ALIGN_8BYTES = 0x00400000;
a61af66fc99e Initial load
duke
parents:
diff changeset
110
a61af66fc99e Initial load
duke
parents:
diff changeset
111 /** Align data on a 16-byte boundary. This is valid for object files
a61af66fc99e Initial load
duke
parents:
diff changeset
112 only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
113 public static final int IMAGE_SCN_ALIGN_16BYTES = 0x00500000;
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 /** Align data on a 32-byte boundary. This is valid for object files
a61af66fc99e Initial load
duke
parents:
diff changeset
116 only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
117 public static final int IMAGE_SCN_ALIGN_32BYTES = 0x00600000;
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 /** Align data on a 64-byte boundary. This is valid for object files
a61af66fc99e Initial load
duke
parents:
diff changeset
120 only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
121 public static final int IMAGE_SCN_ALIGN_64BYTES = 0x00700000;
a61af66fc99e Initial load
duke
parents:
diff changeset
122
a61af66fc99e Initial load
duke
parents:
diff changeset
123 /** Align data on a 128-byte boundary. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
124 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
125 public static final int IMAGE_SCN_ALIGN_128BYTES = 0x00800000;
a61af66fc99e Initial load
duke
parents:
diff changeset
126
a61af66fc99e Initial load
duke
parents:
diff changeset
127 /** Align data on a 256-byte boundary. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
128 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
129 public static final int IMAGE_SCN_ALIGN_256BYTES = 0x00900000;
a61af66fc99e Initial load
duke
parents:
diff changeset
130
a61af66fc99e Initial load
duke
parents:
diff changeset
131 /** Align data on a 512-byte boundary. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
132 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
133 public static final int IMAGE_SCN_ALIGN_512BYTES = 0x00A00000;
a61af66fc99e Initial load
duke
parents:
diff changeset
134
a61af66fc99e Initial load
duke
parents:
diff changeset
135 /** Align data on a 1024-byte boundary. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
136 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
137 public static final int IMAGE_SCN_ALIGN_1024BYTES = 0x00B00000;
a61af66fc99e Initial load
duke
parents:
diff changeset
138
a61af66fc99e Initial load
duke
parents:
diff changeset
139 /** Align data on a 2048-byte boundary. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
140 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
141 public static final int IMAGE_SCN_ALIGN_2048BYTES = 0x00C00000;
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 /** Align data on a 4096-byte boundary. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
144 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
145 public static final int IMAGE_SCN_ALIGN_4096BYTES = 0x00D00000;
a61af66fc99e Initial load
duke
parents:
diff changeset
146
a61af66fc99e Initial load
duke
parents:
diff changeset
147 /** Align data on a 8192-byte boundary. This is valid for object
a61af66fc99e Initial load
duke
parents:
diff changeset
148 files only. */
a61af66fc99e Initial load
duke
parents:
diff changeset
149 public static final int IMAGE_SCN_ALIGN_8192BYTES = 0x00E00000;
a61af66fc99e Initial load
duke
parents:
diff changeset
150
a61af66fc99e Initial load
duke
parents:
diff changeset
151 /** Section contains extended relocations. */
a61af66fc99e Initial load
duke
parents:
diff changeset
152 public static final int IMAGE_SCN_LNK_NRELOC_OVFL = 0x01000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
153
a61af66fc99e Initial load
duke
parents:
diff changeset
154 /** Section can be discarded as needed. */
a61af66fc99e Initial load
duke
parents:
diff changeset
155 public static final int IMAGE_SCN_MEM_DISCARDABLE = 0x02000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
156
a61af66fc99e Initial load
duke
parents:
diff changeset
157 /** Section cannot be cached. */
a61af66fc99e Initial load
duke
parents:
diff changeset
158 public static final int IMAGE_SCN_MEM_NOT_CACHED = 0x04000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 /** Section is not pageable. */
a61af66fc99e Initial load
duke
parents:
diff changeset
161 public static final int IMAGE_SCN_MEM_NOT_PAGED = 0x08000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
162
a61af66fc99e Initial load
duke
parents:
diff changeset
163 /** Section can be shared in memory. */
a61af66fc99e Initial load
duke
parents:
diff changeset
164 public static final int IMAGE_SCN_MEM_SHARED = 0x10000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
165
a61af66fc99e Initial load
duke
parents:
diff changeset
166 /** Section can be executed as code. */
a61af66fc99e Initial load
duke
parents:
diff changeset
167 public static final int IMAGE_SCN_MEM_EXECUTE = 0x20000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
168
a61af66fc99e Initial load
duke
parents:
diff changeset
169 /** Section can be read. */
a61af66fc99e Initial load
duke
parents:
diff changeset
170 public static final int IMAGE_SCN_MEM_READ = 0x40000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
171
a61af66fc99e Initial load
duke
parents:
diff changeset
172 /** Section can be written to. */
a61af66fc99e Initial load
duke
parents:
diff changeset
173 public static final int IMAGE_SCN_MEM_WRITE = 0x80000000;
a61af66fc99e Initial load
duke
parents:
diff changeset
174 }