1 /* |
1 /* |
2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
|
26 #include "code/vmreg.inline.hpp" |
26 #include "compiler/oopMap.hpp" |
27 #include "compiler/oopMap.hpp" |
27 #include "opto/addnode.hpp" |
28 #include "opto/addnode.hpp" |
28 #include "opto/callnode.hpp" |
29 #include "opto/callnode.hpp" |
29 #include "opto/compile.hpp" |
30 #include "opto/compile.hpp" |
30 #include "opto/machnode.hpp" |
31 #include "opto/machnode.hpp" |
31 #include "opto/matcher.hpp" |
32 #include "opto/matcher.hpp" |
32 #include "opto/phase.hpp" |
33 #include "opto/phase.hpp" |
33 #include "opto/regalloc.hpp" |
34 #include "opto/regalloc.hpp" |
34 #include "opto/rootnode.hpp" |
35 #include "opto/rootnode.hpp" |
35 #ifdef TARGET_ARCH_x86 |
|
36 # include "vmreg_x86.inline.hpp" |
|
37 #endif |
|
38 #ifdef TARGET_ARCH_sparc |
|
39 # include "vmreg_sparc.inline.hpp" |
|
40 #endif |
|
41 #ifdef TARGET_ARCH_zero |
|
42 # include "vmreg_zero.inline.hpp" |
|
43 #endif |
|
44 #ifdef TARGET_ARCH_arm |
|
45 # include "vmreg_arm.inline.hpp" |
|
46 #endif |
|
47 #ifdef TARGET_ARCH_ppc |
|
48 # include "vmreg_ppc.inline.hpp" |
|
49 #endif |
|
50 |
36 |
51 // The functions in this file builds OopMaps after all scheduling is done. |
37 // The functions in this file builds OopMaps after all scheduling is done. |
52 // |
38 // |
53 // OopMaps contain a list of all registers and stack-slots containing oops (so |
39 // OopMaps contain a list of all registers and stack-slots containing oops (so |
54 // they can be updated by GC). OopMaps also contain a list of derived-pointer |
40 // they can be updated by GC). OopMaps also contain a list of derived-pointer |