Mercurial > hg > truffle
annotate make/windows/makefiles/vm.make @ 1434:72cfb36c6bb2
* enabled all jtt tests
* added proxy that counts jni calls
* honor hotspot stackshadowpages
* constant pool caching
* monitor enter/exit
* arithmetic stubs (frem, drem, ...)
* create stack values for debug info
* some doc
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Thu, 30 Sep 2010 17:19:48 -0700 |
parents | d0753a274633 |
children | 2d26b0046e0d |
rev | line source |
---|---|
0 | 1 # |
844 | 2 # Copyright 1997-2009 Sun Microsystems, Inc. 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 # | |
19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
20 # CA 95054 USA or visit www.sun.com if you need additional information or | |
21 # have any questions. | |
22 # | |
23 # | |
24 | |
25 # Resource file containing VERSIONINFO | |
26 Res_Files=.\version.res | |
27 | |
28 !ifdef RELEASE | |
29 !ifdef DEVELOP | |
30 CPP_FLAGS=$(CPP_FLAGS) /D "DEBUG" | |
31 !else | |
32 CPP_FLAGS=$(CPP_FLAGS) /D "PRODUCT" | |
33 !endif | |
34 !else | |
35 CPP_FLAGS=$(CPP_FLAGS) /D "ASSERT" | |
36 !endif | |
37 | |
38 !if "$(Variant)" == "core" | |
39 # No need to define anything, CORE is defined as !COMPILER1 && !COMPILER2 | |
40 !endif | |
41 | |
42 !if "$(Variant)" == "kernel" | |
43 CPP_FLAGS=$(CPP_FLAGS) /D "KERNEL" | |
44 !endif | |
45 | |
46 !if "$(Variant)" == "compiler1" | |
47 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1" | |
48 !endif | |
49 | |
50 !if "$(Variant)" == "compiler2" | |
51 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER2" | |
52 !endif | |
53 | |
54 !if "$(Variant)" == "tiered" | |
55 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1" /D "COMPILER2" | |
56 !endif | |
57 | |
720
67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
never
parents:
356
diff
changeset
|
58 !if "$(BUILDARCH)" == "i486" |
67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
never
parents:
356
diff
changeset
|
59 HOTSPOT_LIB_ARCH=i386 |
67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
never
parents:
356
diff
changeset
|
60 !else |
67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
never
parents:
356
diff
changeset
|
61 HOTSPOT_LIB_ARCH=$(BUILDARCH) |
67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
never
parents:
356
diff
changeset
|
62 !endif |
67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
never
parents:
356
diff
changeset
|
63 |
0 | 64 # The following variables are defined in the generated local.make file. |
65 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_RELEASE_VERSION=\"$(HS_BUILD_VER)\"" | |
66 CPP_FLAGS=$(CPP_FLAGS) /D "JRE_RELEASE_VERSION=\"$(JRE_RELEASE_VER)\"" | |
720
67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
never
parents:
356
diff
changeset
|
67 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_LIB_ARCH=\"$(HOTSPOT_LIB_ARCH)\"" |
0 | 68 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_TARGET=\"$(BUILD_FLAVOR)\"" |
69 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_USER=\"$(BuildUser)\"" | |
70 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_VM_DISTRO=\"$(HOTSPOT_VM_DISTRO)\"" | |
71 | |
72 CPP_FLAGS=$(CPP_FLAGS) /D "WIN32" /D "_WINDOWS" $(CPP_INCLUDE_DIRS) | |
73 | |
74 # Must specify this for sharedRuntimeTrig.cpp | |
75 CPP_FLAGS=$(CPP_FLAGS) /D "VM_LITTLE_ENDIAN" | |
76 | |
77 # Define that so jni.h is on correct side | |
78 CPP_FLAGS=$(CPP_FLAGS) /D "_JNI_IMPLEMENTATION_" | |
79 | |
80 !if "$(BUILDARCH)" == "ia64" | |
81 STACK_SIZE="/STACK:1048576,262144" | |
82 !else | |
83 STACK_SIZE= | |
84 !endif | |
85 | |
86 !if "$(BUILDARCH)" == "ia64" | |
87 # AsyncGetCallTrace is not supported on IA64 yet | |
88 AGCT_EXPORT= | |
89 !else | |
90 !if "$(Variant)" == "kernel" | |
91 AGCT_EXPORT= | |
92 !else | |
93 AGCT_EXPORT=/export:AsyncGetCallTrace | |
94 !endif | |
95 !endif | |
96 | |
226
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
97 LINK_FLAGS=$(LINK_FLAGS) $(STACK_SIZE) /subsystem:windows /dll /base:0x8000000 \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
98 /export:JNI_GetDefaultJavaVMInitArgs \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
99 /export:JNI_CreateJavaVM \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
100 /export:JVM_FindClassFromBootLoader \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
101 /export:JNI_GetCreatedJavaVMs \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
102 /export:jio_snprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
103 /export:jio_printf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
104 /export:jio_fprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
105 /export:jio_vfprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
106 /export:jio_vsnprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
107 $(AGCT_EXPORT) \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
108 /export:JVM_GetVersionInfo \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
109 /export:JVM_GetThreadStateNames \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
110 /export:JVM_GetThreadStateValues \ |
0 | 111 /export:JVM_InitAgentProperties |
112 | |
113 CPP_INCLUDE_DIRS=\ | |
114 /I "..\generated" \ | |
115 /I "..\generated\jvmtifiles" \ | |
116 /I "$(WorkSpace)\src\share\vm\c1" \ | |
1410
b30a2cd5e3a2
Added methods to c1x_VMExits.cpp
Thomas Wuerthinger <thomas.wuerthinger@gmail.com>
parents:
844
diff
changeset
|
117 /I "$(WorkSpace)\src\share\vm\c1x" \ |
0 | 118 /I "$(WorkSpace)\src\share\vm\compiler" \ |
119 /I "$(WorkSpace)\src\share\vm\code" \ | |
120 /I "$(WorkSpace)\src\share\vm\interpreter" \ | |
121 /I "$(WorkSpace)\src\share\vm\ci" \ | |
122 /I "$(WorkSpace)\src\share\vm\classfile" \ | |
123 /I "$(WorkSpace)\src\share\vm\gc_implementation\parallelScavenge"\ | |
124 /I "$(WorkSpace)\src\share\vm\gc_implementation\shared"\ | |
125 /I "$(WorkSpace)\src\share\vm\gc_implementation\parNew"\ | |
126 /I "$(WorkSpace)\src\share\vm\gc_implementation\concurrentMarkSweep"\ | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
127 /I "$(WorkSpace)\src\share\vm\gc_implementation\g1"\ |
0 | 128 /I "$(WorkSpace)\src\share\vm\gc_interface"\ |
129 /I "$(WorkSpace)\src\share\vm\asm" \ | |
130 /I "$(WorkSpace)\src\share\vm\memory" \ | |
131 /I "$(WorkSpace)\src\share\vm\oops" \ | |
132 /I "$(WorkSpace)\src\share\vm\prims" \ | |
133 /I "$(WorkSpace)\src\share\vm\runtime" \ | |
134 /I "$(WorkSpace)\src\share\vm\services" \ | |
135 /I "$(WorkSpace)\src\share\vm\utilities" \ | |
136 /I "$(WorkSpace)\src\share\vm\libadt" \ | |
137 /I "$(WorkSpace)\src\share\vm\opto" \ | |
138 /I "$(WorkSpace)\src\os\windows\vm" \ | |
139 /I "$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm" \ | |
140 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm" | |
141 | |
142 CPP_USE_PCH=/Fp"vm.pch" /Yu"incls/_precompiled.incl" | |
143 | |
144 # Where to find the source code for the virtual machine | |
145 VM_PATH=../generated/incls | |
146 VM_PATH=$(VM_PATH);../generated/jvmtifiles | |
147 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1 | |
1408
0ba67bb5392c
added c1x build directory, added MSVC Win64 project support
lstadler
parents:
844
diff
changeset
|
148 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1x |
0 | 149 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/compiler |
150 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/code | |
151 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/interpreter | |
152 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/ci | |
153 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/classfile | |
154 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parallelScavenge | |
155 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/shared | |
156 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parNew | |
157 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/concurrentMarkSweep | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
158 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/g1 |
0 | 159 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_interface |
160 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/asm | |
161 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/memory | |
162 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/oops | |
163 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims | |
164 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/runtime | |
165 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services | |
166 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities | |
167 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt | |
168 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm | |
169 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm | |
170 VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm | |
171 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/opto | |
172 | |
173 VM_PATH={$(VM_PATH)} | |
174 | |
175 # Special case files not using precompiled header files. | |
176 | |
177 c1_RInfo_$(Platform_arch).obj: $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp | |
178 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp | |
179 | |
180 os_windows.obj: $(WorkSpace)\src\os\windows\vm\os_windows.cpp | |
181 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\os_windows.cpp | |
182 | |
183 os_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp | |
184 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp | |
185 | |
186 osThread_windows.obj: $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp | |
187 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp | |
188 | |
189 conditionVar_windows.obj: $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp | |
190 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp | |
191 | |
192 getThread_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp | |
193 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp | |
194 | |
195 opcodes.obj: $(WorkSpace)\src\share\vm\opto\opcodes.cpp | |
196 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\share\vm\opto\opcodes.cpp | |
197 | |
198 bytecodeInterpreter.obj: $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp | |
199 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp | |
200 | |
201 bytecodeInterpreterWithChecks.obj: ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp | |
202 $(CPP) $(CPP_FLAGS) /c ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp | |
203 | |
204 # Default rules for the Virtual Machine | |
205 {$(WorkSpace)\src\share\vm\c1}.cpp.obj:: | |
206 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
207 | |
208 {$(WorkSpace)\src\share\vm\compiler}.cpp.obj:: | |
209 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
210 | |
211 {$(WorkSpace)\src\share\vm\code}.cpp.obj:: | |
212 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
213 | |
214 {$(WorkSpace)\src\share\vm\interpreter}.cpp.obj:: | |
215 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
216 | |
217 {$(WorkSpace)\src\share\vm\ci}.cpp.obj:: | |
218 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
219 | |
220 {$(WorkSpace)\src\share\vm\classfile}.cpp.obj:: | |
221 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
222 | |
223 {$(WorkSpace)\src\share\vm\gc_implementation\parallelScavenge}.cpp.obj:: | |
224 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
225 | |
226 {$(WorkSpace)\src\share\vm\gc_implementation\shared}.cpp.obj:: | |
227 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
228 | |
229 {$(WorkSpace)\src\share\vm\gc_implementation\parNew}.cpp.obj:: | |
230 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
231 | |
232 {$(WorkSpace)\src\share\vm\gc_implementation\concurrentMarkSweep}.cpp.obj:: | |
233 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
234 | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
235 {$(WorkSpace)\src\share\vm\gc_implementation\g1}.cpp.obj:: |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
236 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
237 |
0 | 238 {$(WorkSpace)\src\share\vm\gc_interface}.cpp.obj:: |
239 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
240 | |
241 {$(WorkSpace)\src\share\vm\asm}.cpp.obj:: | |
242 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
243 | |
244 {$(WorkSpace)\src\share\vm\memory}.cpp.obj:: | |
245 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
246 | |
247 {$(WorkSpace)\src\share\vm\oops}.cpp.obj:: | |
248 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
249 | |
250 {$(WorkSpace)\src\share\vm\prims}.cpp.obj:: | |
251 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
252 | |
253 {$(WorkSpace)\src\share\vm\runtime}.cpp.obj:: | |
254 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
255 | |
256 {$(WorkSpace)\src\share\vm\services}.cpp.obj:: | |
257 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
258 | |
259 {$(WorkSpace)\src\share\vm\utilities}.cpp.obj:: | |
260 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
261 | |
262 {$(WorkSpace)\src\share\vm\libadt}.cpp.obj:: | |
263 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
264 | |
265 {$(WorkSpace)\src\share\vm\opto}.cpp.obj:: | |
266 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
267 | |
268 {$(WorkSpace)\src\os\windows\vm}.cpp.obj:: | |
269 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
270 | |
271 # This guy should remain a single colon rule because | |
272 # otherwise we can't specify the output filename. | |
273 {$(WorkSpace)\src\os\windows\vm}.rc.res: | |
274 @$(RC) $(RC_FLAGS) /fo"$@" $< | |
275 | |
276 {$(WorkSpace)\src\cpu\$(Platform_arch)\vm}.cpp.obj:: | |
277 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
278 | |
279 {$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj:: | |
280 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
281 | |
282 {..\generated\incls}.cpp.obj:: | |
283 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
284 | |
285 {..\generated\jvmtifiles}.cpp.obj:: | |
286 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
287 | |
288 default:: | |
289 | |
290 _build_pch_file.obj: | |
291 @echo #include "incls/_precompiled.incl" > ../generated/_build_pch_file.cpp | |
292 $(CPP) $(CPP_FLAGS) /Fp"vm.pch" /Yc"incls/_precompiled.incl" /c ../generated/_build_pch_file.cpp |