< prev index next >

src/share/vm/runtime/registerMap.hpp

Print this page




  25 #ifndef SHARE_VM_RUNTIME_REGISTERMAP_HPP
  26 #define SHARE_VM_RUNTIME_REGISTERMAP_HPP
  27 
  28 #include "code/vmreg.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 #ifdef TARGET_ARCH_x86
  31 # include "register_x86.hpp"
  32 #endif
  33 #ifdef TARGET_ARCH_sparc
  34 # include "register_sparc.hpp"
  35 #endif
  36 #ifdef TARGET_ARCH_zero
  37 # include "register_zero.hpp"
  38 #endif
  39 #ifdef TARGET_ARCH_arm
  40 # include "register_arm.hpp"
  41 #endif
  42 #ifdef TARGET_ARCH_ppc
  43 # include "register_ppc.hpp"
  44 #endif



  45 
  46 class JavaThread;
  47 
  48 //
  49 // RegisterMap
  50 //
  51 // A companion structure used for stack traversal. The RegisterMap contains
  52 // misc. information needed in order to do correct stack traversal of stack
  53 // frames.  Hence, it must always be passed in as an argument to
  54 // frame::sender(RegisterMap*).
  55 //
  56 // In particular,
  57 //   1) It provides access to the thread for which the stack belongs.  The
  58 //      thread object is needed in order to get sender of a deoptimized frame.
  59 //
  60 //   2) It is used to pass information from a callee frame to its caller
  61 //      frame about how the frame should be traversed.  This is used to let
  62 //      the caller frame take care of calling oops-do of out-going
  63 //      arguments, when the callee frame is not instantiated yet.  This
  64 //      happens, e.g., when a compiled frame calls into


 132   bool update_map()    const { return _update_map; }
 133 
 134   void print_on(outputStream* st) const;
 135   void print() const;
 136 
 137   // the following contains the definition of pd_xxx methods
 138 #ifdef TARGET_ARCH_x86
 139 # include "registerMap_x86.hpp"
 140 #endif
 141 #ifdef TARGET_ARCH_sparc
 142 # include "registerMap_sparc.hpp"
 143 #endif
 144 #ifdef TARGET_ARCH_zero
 145 # include "registerMap_zero.hpp"
 146 #endif
 147 #ifdef TARGET_ARCH_arm
 148 # include "registerMap_arm.hpp"
 149 #endif
 150 #ifdef TARGET_ARCH_ppc
 151 # include "registerMap_ppc.hpp"



 152 #endif
 153 
 154 };
 155 
 156 #endif // SHARE_VM_RUNTIME_REGISTERMAP_HPP


  25 #ifndef SHARE_VM_RUNTIME_REGISTERMAP_HPP
  26 #define SHARE_VM_RUNTIME_REGISTERMAP_HPP
  27 
  28 #include "code/vmreg.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 #ifdef TARGET_ARCH_x86
  31 # include "register_x86.hpp"
  32 #endif
  33 #ifdef TARGET_ARCH_sparc
  34 # include "register_sparc.hpp"
  35 #endif
  36 #ifdef TARGET_ARCH_zero
  37 # include "register_zero.hpp"
  38 #endif
  39 #ifdef TARGET_ARCH_arm
  40 # include "register_arm.hpp"
  41 #endif
  42 #ifdef TARGET_ARCH_ppc
  43 # include "register_ppc.hpp"
  44 #endif
  45 #ifdef TARGET_ARCH_aarch32
  46 # include "register_aarch32.hpp"
  47 #endif
  48 
  49 class JavaThread;
  50 
  51 //
  52 // RegisterMap
  53 //
  54 // A companion structure used for stack traversal. The RegisterMap contains
  55 // misc. information needed in order to do correct stack traversal of stack
  56 // frames.  Hence, it must always be passed in as an argument to
  57 // frame::sender(RegisterMap*).
  58 //
  59 // In particular,
  60 //   1) It provides access to the thread for which the stack belongs.  The
  61 //      thread object is needed in order to get sender of a deoptimized frame.
  62 //
  63 //   2) It is used to pass information from a callee frame to its caller
  64 //      frame about how the frame should be traversed.  This is used to let
  65 //      the caller frame take care of calling oops-do of out-going
  66 //      arguments, when the callee frame is not instantiated yet.  This
  67 //      happens, e.g., when a compiled frame calls into


 135   bool update_map()    const { return _update_map; }
 136 
 137   void print_on(outputStream* st) const;
 138   void print() const;
 139 
 140   // the following contains the definition of pd_xxx methods
 141 #ifdef TARGET_ARCH_x86
 142 # include "registerMap_x86.hpp"
 143 #endif
 144 #ifdef TARGET_ARCH_sparc
 145 # include "registerMap_sparc.hpp"
 146 #endif
 147 #ifdef TARGET_ARCH_zero
 148 # include "registerMap_zero.hpp"
 149 #endif
 150 #ifdef TARGET_ARCH_arm
 151 # include "registerMap_arm.hpp"
 152 #endif
 153 #ifdef TARGET_ARCH_ppc
 154 # include "registerMap_ppc.hpp"
 155 #endif
 156 #ifdef TARGET_ARCH_aarch32
 157 # include "registerMap_aarch32.hpp"
 158 #endif
 159 
 160 };
 161 
 162 #endif // SHARE_VM_RUNTIME_REGISTERMAP_HPP
< prev index next >