75 // This is very dangerous unless sp == NULL
76 // Invalidate the anchor so that has_last_frame is false
77 // and no one should look at the other fields.
78 void zap(void) { _last_Java_sp = NULL; }
79
80 #ifdef TARGET_ARCH_x86
81 # include "javaFrameAnchor_x86.hpp"
82 #endif
83 #ifdef TARGET_ARCH_sparc
84 # include "javaFrameAnchor_sparc.hpp"
85 #endif
86 #ifdef TARGET_ARCH_zero
87 # include "javaFrameAnchor_zero.hpp"
88 #endif
89 #ifdef TARGET_ARCH_arm
90 # include "javaFrameAnchor_arm.hpp"
91 #endif
92 #ifdef TARGET_ARCH_ppc
93 # include "javaFrameAnchor_ppc.hpp"
94 #endif
95
96
97 public:
98 JavaFrameAnchor() { clear(); }
99 JavaFrameAnchor(JavaFrameAnchor *src) { copy(src); }
100
101 void set_last_Java_pc(address pc) { _last_Java_pc = pc; }
102
103 // Assembly stub generation helpers
104
105 static ByteSize last_Java_sp_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_sp); }
106 static ByteSize last_Java_pc_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_pc); }
107
108 };
109
110 #endif // SHARE_VM_RUNTIME_JAVAFRAMEANCHOR_HPP
|
75 // This is very dangerous unless sp == NULL
76 // Invalidate the anchor so that has_last_frame is false
77 // and no one should look at the other fields.
78 void zap(void) { _last_Java_sp = NULL; }
79
80 #ifdef TARGET_ARCH_x86
81 # include "javaFrameAnchor_x86.hpp"
82 #endif
83 #ifdef TARGET_ARCH_sparc
84 # include "javaFrameAnchor_sparc.hpp"
85 #endif
86 #ifdef TARGET_ARCH_zero
87 # include "javaFrameAnchor_zero.hpp"
88 #endif
89 #ifdef TARGET_ARCH_arm
90 # include "javaFrameAnchor_arm.hpp"
91 #endif
92 #ifdef TARGET_ARCH_ppc
93 # include "javaFrameAnchor_ppc.hpp"
94 #endif
95 #ifdef TARGET_ARCH_aarch64
96 # include "javaFrameAnchor_aarch64.hpp"
97 #endif
98
99
100 public:
101 JavaFrameAnchor() { clear(); }
102 JavaFrameAnchor(JavaFrameAnchor *src) { copy(src); }
103
104 void set_last_Java_pc(address pc) { _last_Java_pc = pc; }
105
106 // Assembly stub generation helpers
107
108 static ByteSize last_Java_sp_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_sp); }
109 static ByteSize last_Java_pc_offset() { return byte_offset_of(JavaFrameAnchor, _last_Java_pc); }
110
111 };
112
113 #endif // SHARE_VM_RUNTIME_JAVAFRAMEANCHOR_HPP
|