src/share/vm/runtime/frame.inline.hpp

Print this page
rev 5992 : 8035396: Introduce accessor for tmp_oop in frame.


  70 inline bool frame::is_bci(intptr_t bcx) {
  71 #ifdef _LP64
  72   return ((uintptr_t) bcx) <= ((uintptr_t) max_method_code_size) ;
  73 #else
  74   return 0 <= bcx && bcx <= max_method_code_size;
  75 #endif
  76 }
  77 
  78 inline bool frame::is_entry_frame() const {
  79   return StubRoutines::returns_to_call_stub(pc());
  80 }
  81 
  82 inline bool frame::is_stub_frame() const {
  83   return StubRoutines::is_stub_code(pc()) || (_cb != NULL && _cb->is_adapter_blob());
  84 }
  85 
  86 inline bool frame::is_first_frame() const {
  87   return is_entry_frame() && entry_frame_is_first();
  88 }
  89 







  90 // here are the platform-dependent bodies:
  91 
  92 #ifdef TARGET_ARCH_x86
  93 # include "frame_x86.inline.hpp"
  94 #endif
  95 #ifdef TARGET_ARCH_sparc
  96 # include "frame_sparc.inline.hpp"
  97 #endif
  98 #ifdef TARGET_ARCH_zero
  99 # include "frame_zero.inline.hpp"
 100 #endif
 101 #ifdef TARGET_ARCH_arm
 102 # include "frame_arm.inline.hpp"
 103 #endif
 104 #ifdef TARGET_ARCH_ppc
 105 # include "frame_ppc.inline.hpp"
 106 #endif
 107 
 108 
 109 #endif // SHARE_VM_RUNTIME_FRAME_INLINE_HPP


  70 inline bool frame::is_bci(intptr_t bcx) {
  71 #ifdef _LP64
  72   return ((uintptr_t) bcx) <= ((uintptr_t) max_method_code_size) ;
  73 #else
  74   return 0 <= bcx && bcx <= max_method_code_size;
  75 #endif
  76 }
  77 
  78 inline bool frame::is_entry_frame() const {
  79   return StubRoutines::returns_to_call_stub(pc());
  80 }
  81 
  82 inline bool frame::is_stub_frame() const {
  83   return StubRoutines::is_stub_code(pc()) || (_cb != NULL && _cb->is_adapter_blob());
  84 }
  85 
  86 inline bool frame::is_first_frame() const {
  87   return is_entry_frame() && entry_frame_is_first();
  88 }
  89 
  90 #ifdef CC_INTERP
  91 inline oop* frame::interpreter_frame_temp_oop_addr() const {
  92   interpreterState istate = get_interpreterState();
  93   return (oop *)&istate->_oop_temp;
  94 }
  95 #endif // CC_INTERP
  96 
  97 // here are the platform-dependent bodies:
  98 
  99 #ifdef TARGET_ARCH_x86
 100 # include "frame_x86.inline.hpp"
 101 #endif
 102 #ifdef TARGET_ARCH_sparc
 103 # include "frame_sparc.inline.hpp"
 104 #endif
 105 #ifdef TARGET_ARCH_zero
 106 # include "frame_zero.inline.hpp"
 107 #endif
 108 #ifdef TARGET_ARCH_arm
 109 # include "frame_arm.inline.hpp"
 110 #endif
 111 #ifdef TARGET_ARCH_ppc
 112 # include "frame_ppc.inline.hpp"
 113 #endif
 114 
 115 
 116 #endif // SHARE_VM_RUNTIME_FRAME_INLINE_HPP