comparison src/share/vm/runtime/javaFrameAnchor.hpp @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents 126ea7725993
children b92c45f2bc75
comparison
equal deleted inserted replaced
1971:e33f46fc48ed 1972:f95d63e2154a
1 /* 1 /*
2 * Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 2010, 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.
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24
25 #ifndef SHARE_VM_RUNTIME_JAVAFRAMEANCHOR_HPP
26 #define SHARE_VM_RUNTIME_JAVAFRAMEANCHOR_HPP
27
28 #include "utilities/globalDefinitions.hpp"
29 #ifdef TARGET_OS_ARCH_linux_x86
30 # include "orderAccess_linux_x86.inline.hpp"
31 #endif
32 #ifdef TARGET_OS_ARCH_linux_sparc
33 # include "orderAccess_linux_sparc.inline.hpp"
34 #endif
35 #ifdef TARGET_OS_ARCH_linux_zero
36 # include "orderAccess_linux_zero.inline.hpp"
37 #endif
38 #ifdef TARGET_OS_ARCH_solaris_x86
39 # include "orderAccess_solaris_x86.inline.hpp"
40 #endif
41 #ifdef TARGET_OS_ARCH_solaris_sparc
42 # include "orderAccess_solaris_sparc.inline.hpp"
43 #endif
44 #ifdef TARGET_OS_ARCH_windows_x86
45 # include "orderAccess_windows_x86.inline.hpp"
46 #endif
24 // 47 //
25 // An object for encapsulating the machine/os dependent part of a JavaThread frame state 48 // An object for encapsulating the machine/os dependent part of a JavaThread frame state
26 // 49 //
27 class JavaThread; 50 class JavaThread;
28 51
68 // This is very dangerous unless sp == NULL 91 // This is very dangerous unless sp == NULL
69 // Invalidate the anchor so that has_last_frame is false 92 // Invalidate the anchor so that has_last_frame is false
70 // and no one should look at the other fields. 93 // and no one should look at the other fields.
71 void zap(void) { _last_Java_sp = NULL; } 94 void zap(void) { _last_Java_sp = NULL; }
72 95
73 #include "incls/_javaFrameAnchor_pd.hpp.incl" 96 #ifdef TARGET_ARCH_x86
97 # include "javaFrameAnchor_x86.hpp"
98 #endif
99 #ifdef TARGET_ARCH_sparc
100 # include "javaFrameAnchor_sparc.hpp"
101 #endif
102 #ifdef TARGET_ARCH_zero
103 # include "javaFrameAnchor_zero.hpp"
104 #endif
105
74 106
75 public: 107 public:
76 JavaFrameAnchor() { clear(); } 108 JavaFrameAnchor() { clear(); }
77 JavaFrameAnchor(JavaFrameAnchor *src) { copy(src); } 109 JavaFrameAnchor(JavaFrameAnchor *src) { copy(src); }
78 110
82 114
83 static ByteSize last_Java_sp_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_sp); } 115 static ByteSize last_Java_sp_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_sp); }
84 static ByteSize last_Java_pc_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_pc); } 116 static ByteSize last_Java_pc_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_pc); }
85 117
86 }; 118 };
119
120 #endif // SHARE_VM_RUNTIME_JAVAFRAMEANCHOR_HPP