src/hotspot/share/aot/aotCompiledMethod.cpp
changeset 49480 d7df2dd501ce
parent 49455 848864ed9b17
child 49594 898ef81cbc0e
--- a/src/hotspot/share/aot/aotCompiledMethod.cpp	Wed Mar 21 17:09:34 2018 -0400
+++ b/src/hotspot/share/aot/aotCompiledMethod.cpp	Wed Mar 21 19:45:24 2018 -0400
@@ -36,6 +36,7 @@
 #include "jvmci/compilerRuntime.hpp"
 #include "jvmci/jvmciRuntime.hpp"
 #include "oops/method.inline.hpp"
+#include "runtime/frame.inline.hpp"
 #include "runtime/handles.inline.hpp"
 #include "runtime/java.hpp"
 #include "runtime/os.hpp"
@@ -70,6 +71,10 @@
 }
 #endif
 
+address* AOTCompiledMethod::orig_pc_addr(const frame* fr) {
+  return (address*) ((address)fr->unextended_sp() + _meta->orig_pc_offset());
+}
+
 bool AOTCompiledMethod::do_unloading_oops(address low_boundary, BoolObjectClosure* is_alive, bool unloading_occurred) {
   return false;
 }