hotspot/src/cpu/ppc/vm/nativeInst_ppc.cpp
changeset 33105 294e48b4f704
parent 28187 fc19df82d6ee
child 35085 839c8ba29724
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
   147   address addr = addr_at(0);
   147   address addr = addr_at(0);
   148 
   148 
   149   if (!NativeCall::is_call_at(addr)) {
   149   if (!NativeCall::is_call_at(addr)) {
   150     tty->print_cr("not a NativeCall at " PTR_FORMAT, p2i(addr));
   150     tty->print_cr("not a NativeCall at " PTR_FORMAT, p2i(addr));
   151     // TODO: PPC port: Disassembler::decode(addr - 20, addr + 20, tty);
   151     // TODO: PPC port: Disassembler::decode(addr - 20, addr + 20, tty);
   152     fatal(err_msg("not a NativeCall at " PTR_FORMAT, p2i(addr)));
   152     fatal("not a NativeCall at " PTR_FORMAT, p2i(addr));
   153   }
   153   }
   154 }
   154 }
   155 #endif // ASSERT
   155 #endif // ASSERT
   156 
   156 
   157 #ifdef ASSERT
   157 #ifdef ASSERT
   160 
   160 
   161   NativeInstruction::verify();
   161   NativeInstruction::verify();
   162   if (!NativeFarCall::is_far_call_at(addr)) {
   162   if (!NativeFarCall::is_far_call_at(addr)) {
   163     tty->print_cr("not a NativeFarCall at " PTR_FORMAT, p2i(addr));
   163     tty->print_cr("not a NativeFarCall at " PTR_FORMAT, p2i(addr));
   164     // TODO: PPC port: Disassembler::decode(addr, 20, 20, tty);
   164     // TODO: PPC port: Disassembler::decode(addr, 20, 20, tty);
   165     fatal(err_msg("not a NativeFarCall at " PTR_FORMAT, p2i(addr)));
   165     fatal("not a NativeFarCall at " PTR_FORMAT, p2i(addr));
   166   }
   166   }
   167 }
   167 }
   168 #endif // ASSERT
   168 #endif // ASSERT
   169 
   169 
   170 address NativeMovConstReg::next_instruction_address() const {
   170 address NativeMovConstReg::next_instruction_address() const {
   306     if (! (cb != NULL && MacroAssembler::is_calculate_address_from_global_toc_at(addr, cb->content_begin())) &&
   306     if (! (cb != NULL && MacroAssembler::is_calculate_address_from_global_toc_at(addr, cb->content_begin())) &&
   307         ! (cb != NULL && MacroAssembler::is_set_narrow_oop(addr, cb->content_begin())) &&
   307         ! (cb != NULL && MacroAssembler::is_set_narrow_oop(addr, cb->content_begin())) &&
   308         ! MacroAssembler::is_bl(*((int*) addr))) {
   308         ! MacroAssembler::is_bl(*((int*) addr))) {
   309       tty->print_cr("not a NativeMovConstReg at " PTR_FORMAT, p2i(addr));
   309       tty->print_cr("not a NativeMovConstReg at " PTR_FORMAT, p2i(addr));
   310       // TODO: PPC port: Disassembler::decode(addr, 20, 20, tty);
   310       // TODO: PPC port: Disassembler::decode(addr, 20, 20, tty);
   311       fatal(err_msg("not a NativeMovConstReg at " PTR_FORMAT, p2i(addr)));
   311       fatal("not a NativeMovConstReg at " PTR_FORMAT, p2i(addr));
   312     }
   312     }
   313   }
   313   }
   314 }
   314 }
   315 #endif // ASSERT
   315 #endif // ASSERT
   316 
   316 
   344 
   344 
   345   NativeInstruction::verify();
   345   NativeInstruction::verify();
   346   if (!NativeJump::is_jump_at(addr)) {
   346   if (!NativeJump::is_jump_at(addr)) {
   347     tty->print_cr("not a NativeJump at " PTR_FORMAT, p2i(addr));
   347     tty->print_cr("not a NativeJump at " PTR_FORMAT, p2i(addr));
   348     // TODO: PPC port: Disassembler::decode(addr, 20, 20, tty);
   348     // TODO: PPC port: Disassembler::decode(addr, 20, 20, tty);
   349     fatal(err_msg("not a NativeJump at " PTR_FORMAT, p2i(addr)));
   349     fatal("not a NativeJump at " PTR_FORMAT, p2i(addr));
   350   }
   350   }
   351 }
   351 }
   352 #endif // ASSERT
   352 #endif // ASSERT
   353 
   353 
   354 //-------------------------------------------------------------------
   354 //-------------------------------------------------------------------