< prev index next >

src/hotspot/share/runtime/javaFrameAnchor.hpp

Print this page

 71   // native are never deoptimized we never need to patch the pc and so this
 72   // is acceptable.
 73   volatile  address _last_Java_pc;
 74 
 75   // tells whether the last Java frame is set
 76   // It is important that when last_Java_sp != NULL that the rest of the frame
 77   // anchor (including platform specific) all be valid.
 78 
 79   bool has_last_Java_frame() const                   { return _last_Java_sp != NULL; }
 80   // This is very dangerous unless sp == NULL
 81   // Invalidate the anchor so that has_last_frame is false
 82   // and no one should look at the other fields.
 83   void zap(void)                                     { _last_Java_sp = NULL; }
 84 
 85 #include CPU_HEADER(javaFrameAnchor)
 86 
 87 public:
 88   JavaFrameAnchor()                              { clear(); }
 89   JavaFrameAnchor(JavaFrameAnchor *src)          { copy(src); }
 90 


 91   // Assembly stub generation helpers
 92 
 93   static ByteSize last_Java_sp_offset()          { return byte_offset_of(JavaFrameAnchor, _last_Java_sp); }
 94   static ByteSize last_Java_pc_offset()          { return byte_offset_of(JavaFrameAnchor, _last_Java_pc); }
 95 
 96 };
 97 
 98 #endif // SHARE_RUNTIME_JAVAFRAMEANCHOR_HPP

 71   // native are never deoptimized we never need to patch the pc and so this
 72   // is acceptable.
 73   volatile  address _last_Java_pc;
 74 
 75   // tells whether the last Java frame is set
 76   // It is important that when last_Java_sp != NULL that the rest of the frame
 77   // anchor (including platform specific) all be valid.
 78 
 79   bool has_last_Java_frame() const                   { return _last_Java_sp != NULL; }
 80   // This is very dangerous unless sp == NULL
 81   // Invalidate the anchor so that has_last_frame is false
 82   // and no one should look at the other fields.
 83   void zap(void)                                     { _last_Java_sp = NULL; }
 84 
 85 #include CPU_HEADER(javaFrameAnchor)
 86 
 87 public:
 88   JavaFrameAnchor()                              { clear(); }
 89   JavaFrameAnchor(JavaFrameAnchor *src)          { copy(src); }
 90 
 91   void set_last_Java_pc(address pc)              { _last_Java_pc = pc; }  // FIXME
 92 
 93   // Assembly stub generation helpers
 94 
 95   static ByteSize last_Java_sp_offset()          { return byte_offset_of(JavaFrameAnchor, _last_Java_sp); }
 96   static ByteSize last_Java_pc_offset()          { return byte_offset_of(JavaFrameAnchor, _last_Java_pc); }
 97 
 98 };
 99 
100 #endif // SHARE_RUNTIME_JAVAFRAMEANCHOR_HPP
< prev index next >