comparison src/cpu/x86/vm/nativeInst_x86.hpp @ 13571:5335d65fec56

removed no longer necessary special code path for Graal
author Doug Simon <doug.simon@oracle.com>
date Thu, 09 Jan 2014 08:29:54 +0100
parents b8f261ba79c6
children 0dac22d266d8
comparison
equal deleted inserted replaced
13570:d7af2296cebb 13571:5335d65fec56
572 return true; 572 return true;
573 } else { 573 } else {
574 return false; 574 return false;
575 } 575 }
576 } else { 576 } else {
577 #ifdef GRAAL
578 // Graal may allocate an arbitrary register for storing the polling address.
579 return true;
580 #else
581 if (ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl && 577 if (ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl &&
582 ubyte_at(1) == 0x05) { // 00 rax 101 578 ubyte_at(1) == 0x05) { // 00 rax 101
583 address fault = addr_at(6) + int_at(2); 579 address fault = addr_at(6) + int_at(2);
584 return os::is_poll_address(fault); 580 return os::is_poll_address(fault);
585 } else { 581 } else {
586 return false; 582 return false;
587 } 583 }
588 #endif
589 } 584 }
590 #else 585 #else
591 return ( ubyte_at(0) == NativeMovRegMem::instruction_code_mem2reg || 586 return ( ubyte_at(0) == NativeMovRegMem::instruction_code_mem2reg ||
592 ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl ) && 587 ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl ) &&
593 (ubyte_at(1)&0xC7) == 0x05 && /* Mod R/M == disp32 */ 588 (ubyte_at(1)&0xC7) == 0x05 && /* Mod R/M == disp32 */