hotspot/src/cpu/x86/vm/assembler_x86.hpp
changeset 13743 154102966e74
parent 13728 882756847a04
child 13883 6979b9850feb
equal deleted inserted replaced
13742:9180987e305d 13743:154102966e74
  2272   void set_word_if_not_zero(Register reg); // sets reg to 1 if not zero, otherwise 0
  2272   void set_word_if_not_zero(Register reg); // sets reg to 1 if not zero, otherwise 0
  2273 
  2273 
  2274   // Debugging
  2274   // Debugging
  2275 
  2275 
  2276   // only if +VerifyOops
  2276   // only if +VerifyOops
       
  2277   // TODO: Make these macros with file and line like sparc version!
  2277   void verify_oop(Register reg, const char* s = "broken oop");
  2278   void verify_oop(Register reg, const char* s = "broken oop");
  2278   void verify_oop_addr(Address addr, const char * s = "broken oop addr");
  2279   void verify_oop_addr(Address addr, const char * s = "broken oop addr");
       
  2280 
       
  2281   // TODO: verify method and klass metadata (compare against vptr?)
       
  2282   void _verify_method_ptr(Register reg, const char * msg, const char * file, int line) {}
       
  2283   void _verify_klass_ptr(Register reg, const char * msg, const char * file, int line){}
       
  2284 
       
  2285 #define verify_method_ptr(reg) _verify_method_ptr(reg, "broken method " #reg, __FILE__, __LINE__)
       
  2286 #define verify_klass_ptr(reg) _verify_klass_ptr(reg, "broken klass " #reg, __FILE__, __LINE__)
  2279 
  2287 
  2280   // only if +VerifyFPU
  2288   // only if +VerifyFPU
  2281   void verify_FPU(int stack_depth, const char* s = "illegal FPU state");
  2289   void verify_FPU(int stack_depth, const char* s = "illegal FPU state");
  2282 
  2290 
  2283   // prints msg, dumps registers and stops execution
  2291   // prints msg, dumps registers and stops execution