Skip to content

Commit d77311e

Browse files
committed
Cleanup
1 parent ff580e4 commit d77311e

File tree

3 files changed

+96
-100
lines changed

3 files changed

+96
-100
lines changed

src/hotspot/cpu/aarch64/continuation_aarch64.inline.hpp

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@ static void patch_callee_link_relative(const frame& f, intptr_t* fp) {
5151
*la = new_value;
5252
}
5353

54+
inline int ContinuationHelper::frame_align_words(int size) {
55+
#ifdef _LP64
56+
return size & 1;
57+
#else
58+
return 0;
59+
#endif
60+
}
61+
62+
inline intptr_t* ContinuationHelper::frame_align_pointer(intptr_t* sp) {
63+
#ifdef _LP64
64+
sp = align_down(sp, 16);
65+
assert((intptr_t)sp % 16 == 0, "");
66+
#endif
67+
return sp;
68+
}
69+
5470
template<typename FKind, typename RegisterMapT>
5571
inline void ContinuationHelper::update_register_map(const frame& f, RegisterMapT* map) {
5672
frame::update_map_with_saved_link(map, link_address<FKind>(f));
@@ -113,14 +129,6 @@ inline void Freeze<ConfigT>::set_top_frame_metadata_pd(const frame& hf) {
113129
: (intptr_t)hf.fp();
114130
}
115131

116-
template <typename ConfigT>
117-
inline intptr_t* Freeze<ConfigT>::align_bottom(intptr_t* bottom, int argsize) {
118-
#ifdef _LP64
119-
bottom -= (argsize & 1);
120-
#endif
121-
return bottom;
122-
}
123-
124132
template <typename ConfigT>
125133
template<typename FKind>
126134
inline frame Freeze<ConfigT>::sender(const frame& f) {
@@ -352,13 +360,4 @@ inline void Thaw<ConfigT>::prefetch_chunk_pd(void* start, int size) {
352360
Prefetch::read(start, size - 64);
353361
}
354362

355-
template <typename ConfigT>
356-
inline intptr_t* Thaw<ConfigT>::align_chunk(intptr_t* vsp) {
357-
#ifdef _LP64
358-
vsp = align_down(vsp, 16);
359-
assert((intptr_t)vsp % 16 == 0, "");
360-
#endif
361-
return vsp;
362-
}
363-
364363
#endif // CPU_AARCH64_CONTINUATION_AARCH64_INLINE_HPP

src/hotspot/cpu/x86/continuation_x86.inline.hpp

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ static void patch_callee_link_relative(const frame& f, intptr_t* fp) {
5050
*la = new_value;
5151
}
5252

53+
inline int ContinuationHelper::frame_align_words(int size) {
54+
#ifdef _LP64
55+
return size & 1;
56+
#else
57+
return 0;
58+
#endif
59+
}
60+
61+
inline intptr_t* ContinuationHelper::frame_align_pointer(intptr_t* sp) {
62+
#ifdef _LP64
63+
sp = align_down(sp, 16);
64+
assert((intptr_t)sp % 16 == 0, "");
65+
#endif
66+
return sp;
67+
}
68+
5369
template<typename FKind, typename RegisterMapT>
5470
inline void ContinuationHelper::update_register_map(const frame& f, RegisterMapT* map) {
5571
frame::update_map_with_saved_link(map, link_address<FKind>(f));
@@ -112,14 +128,6 @@ inline void Freeze<ConfigT>::set_top_frame_metadata_pd(const frame& hf) {
112128
: (intptr_t)hf.fp();
113129
}
114130

115-
template <typename ConfigT>
116-
inline intptr_t* Freeze<ConfigT>::align_bottom(intptr_t* bottom, int argsize) {
117-
#ifdef _LP64
118-
bottom -= (argsize & 1);
119-
#endif
120-
return bottom;
121-
}
122-
123131
template <typename ConfigT>
124132
template<typename FKind>
125133
inline frame Freeze<ConfigT>::sender(const frame& f) {
@@ -341,13 +349,4 @@ inline void Thaw<ConfigT>::prefetch_chunk_pd(void* start, int size) {
341349
Prefetch::read(start, size - 64);
342350
}
343351

344-
template <typename ConfigT>
345-
inline intptr_t* Thaw<ConfigT>::align_chunk(intptr_t* vsp) {
346-
#ifdef _LP64
347-
vsp = align_down(vsp, 16);
348-
assert((intptr_t)vsp % 16 == 0, "");
349-
#endif
350-
return vsp;
351-
}
352-
353352
#endif // CPU_X86_CONTINUATION_X86_INLINE_HPP

0 commit comments

Comments
 (0)