hotspot/src/cpu/sparc/vm/frame_sparc.inline.hpp
changeset 13728 882756847a04
parent 11486 cdc636532368
child 14626 0cf4eccf130f
equal deleted inserted replaced
13727:caf5eb7dd4a7 13728:882756847a04
   136 
   136 
   137 inline int frame::interpreter_frame_monitor_size() {
   137 inline int frame::interpreter_frame_monitor_size() {
   138   return round_to(BasicObjectLock::size(), WordsPerLong);
   138   return round_to(BasicObjectLock::size(), WordsPerLong);
   139 }
   139 }
   140 
   140 
   141 inline methodOop* frame::interpreter_frame_method_addr() const {
   141 inline Method** frame::interpreter_frame_method_addr() const {
   142   interpreterState istate = get_interpreterState();
   142   interpreterState istate = get_interpreterState();
   143   return &istate->_method;
   143   return &istate->_method;
   144 }
   144 }
   145 
   145 
   146 
   146 
   147 // Constant pool cache
   147 // Constant pool cache
   148 
   148 
   149 // where LcpoolCache is saved:
   149 // where LcpoolCache is saved:
   150 inline constantPoolCacheOop* frame::interpreter_frame_cpoolcache_addr() const {
   150 inline ConstantPoolCache** frame::interpreter_frame_cpoolcache_addr() const {
   151   interpreterState istate = get_interpreterState();
   151   interpreterState istate = get_interpreterState();
   152   return &istate->_constants; // should really use accessor
   152   return &istate->_constants; // should really use accessor
   153   }
   153   }
   154 
   154 
   155 inline constantPoolCacheOop* frame::interpreter_frame_cache_addr() const {
   155 inline ConstantPoolCache** frame::interpreter_frame_cache_addr() const {
   156   interpreterState istate = get_interpreterState();
   156   interpreterState istate = get_interpreterState();
   157   return &istate->_constants;
   157   return &istate->_constants;
   158 }
   158 }
   159 
   159 
   160 #else // !CC_INTERP
   160 #else // !CC_INTERP
   211 
   211 
   212 inline int frame::interpreter_frame_monitor_size() {
   212 inline int frame::interpreter_frame_monitor_size() {
   213   return round_to(BasicObjectLock::size(), WordsPerLong);
   213   return round_to(BasicObjectLock::size(), WordsPerLong);
   214 }
   214 }
   215 
   215 
   216 inline methodOop* frame::interpreter_frame_method_addr() const {
   216 inline Method** frame::interpreter_frame_method_addr() const {
   217   return (methodOop*)sp_addr_at( Lmethod->sp_offset_in_saved_window());
   217   return (Method**)sp_addr_at( Lmethod->sp_offset_in_saved_window());
   218 }
   218 }
   219 
   219 
   220 
   220 
   221 // Constant pool cache
   221 // Constant pool cache
   222 
   222 
   223 // where LcpoolCache is saved:
   223 // where LcpoolCache is saved:
   224 inline constantPoolCacheOop* frame::interpreter_frame_cpoolcache_addr() const {
   224 inline ConstantPoolCache** frame::interpreter_frame_cpoolcache_addr() const {
   225     return (constantPoolCacheOop*)sp_addr_at(LcpoolCache->sp_offset_in_saved_window());
   225     return (ConstantPoolCache**)sp_addr_at(LcpoolCache->sp_offset_in_saved_window());
   226   }
   226   }
   227 
   227 
   228 inline constantPoolCacheOop* frame::interpreter_frame_cache_addr() const {
   228 inline ConstantPoolCache** frame::interpreter_frame_cache_addr() const {
   229   return (constantPoolCacheOop*)sp_addr_at( LcpoolCache->sp_offset_in_saved_window());
   229   return (ConstantPoolCache**)sp_addr_at( LcpoolCache->sp_offset_in_saved_window());
   230 }
   230 }
   231 #endif // CC_INTERP
   231 #endif // CC_INTERP
   232 
   232 
   233 
   233 
   234 inline JavaCallWrapper* frame::entry_frame_call_wrapper() const {
   234 inline JavaCallWrapper* frame::entry_frame_call_wrapper() const {