< prev index next >

src/share/vm/runtime/registerMap.hpp

Print this page




  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  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


 120     _location[reg->value()] = (intptr_t*) loc;
 121     _location_valid[index] |= ((LocationValidType)1 << (reg->value() % location_valid_type_size));
 122     check_location_valid();
 123   }
 124 
 125   // Called by an entry frame.
 126   void clear();
 127 
 128   bool include_argument_oops() const      { return _include_argument_oops; }
 129   void set_include_argument_oops(bool f)  { _include_argument_oops = f; }
 130 
 131   JavaThread *thread() const { return _thread; }
 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


  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  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_aarch64
  34 # include "register_aarch64.hpp"
  35 #endif
  36 #ifdef TARGET_ARCH_sparc
  37 # include "register_sparc.hpp"
  38 #endif
  39 #ifdef TARGET_ARCH_zero
  40 # include "register_zero.hpp"
  41 #endif
  42 #ifdef TARGET_ARCH_arm
  43 # include "register_arm.hpp"
  44 #endif
  45 #ifdef TARGET_ARCH_ppc
  46 # include "register_ppc.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


 123     _location[reg->value()] = (intptr_t*) loc;
 124     _location_valid[index] |= ((LocationValidType)1 << (reg->value() % location_valid_type_size));
 125     check_location_valid();
 126   }
 127 
 128   // Called by an entry frame.
 129   void clear();
 130 
 131   bool include_argument_oops() const      { return _include_argument_oops; }
 132   void set_include_argument_oops(bool f)  { _include_argument_oops = f; }
 133 
 134   JavaThread *thread() const { return _thread; }
 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_aarch64
 145 # include "registerMap_aarch64.hpp"
 146 #endif
 147 #ifdef TARGET_ARCH_sparc
 148 # include "registerMap_sparc.hpp"
 149 #endif
 150 #ifdef TARGET_ARCH_zero
 151 # include "registerMap_zero.hpp"
 152 #endif
 153 #ifdef TARGET_ARCH_arm
 154 # include "registerMap_arm.hpp"
 155 #endif
 156 #ifdef TARGET_ARCH_ppc
 157 # include "registerMap_ppc.hpp"
 158 #endif
 159 
 160 };
 161 
 162 #endif // SHARE_VM_RUNTIME_REGISTERMAP_HPP
< prev index next >