Skip to content

Commit

Permalink
Implement stackChunkOopDesc::relativize_frame_pd and stackChunkOopDes…
Browse files Browse the repository at this point in the history
…c::derelativize_frame_pd for riscv
  • Loading branch information
RealFYang committed Aug 7, 2022
1 parent 8a615c8 commit f19f79e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/hotspot/cpu/riscv/stackChunkOop_riscv.inline.hpp
Expand Up @@ -25,12 +25,18 @@
#ifndef CPU_RISCV_STACKCHUNKOOP_RISCV_INLINE_HPP
#define CPU_RISCV_STACKCHUNKOOP_RISCV_INLINE_HPP

#include "runtime/frame.inline.hpp"

inline void stackChunkOopDesc::relativize_frame_pd(frame& fr) const {
Unimplemented();
if (fr.is_interpreted_frame()) {
fr.set_offset_fp(relativize_address(fr.fp()));
}
}

inline void stackChunkOopDesc::derelativize_frame_pd(frame& fr) const {
Unimplemented();
if (fr.is_interpreted_frame()) {
fr.set_fp(derelativize_address(fr.offset_fp()));
}
}

#endif // CPU_RISCV_STACKCHUNKOOP_RISCV_INLINE_HPP

0 comments on commit f19f79e

Please sign in to comment.