Mercurial > hg > graal-compiler
comparison src/cpu/x86/vm/nativeInst_x86.hpp @ 8151:b8f261ba79c6
Minimize diff to plain HotSpot version.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 07 Mar 2013 21:00:29 +0100 |
parents | a413bcd552a4 |
children | 5335d65fec56 |
comparison
equal
deleted
inserted
replaced
8150:b66f831ac5ab | 8151:b8f261ba79c6 |
---|---|
576 } else { | 576 } else { |
577 #ifdef GRAAL | 577 #ifdef GRAAL |
578 // Graal may allocate an arbitrary register for storing the polling address. | 578 // Graal may allocate an arbitrary register for storing the polling address. |
579 return true; | 579 return true; |
580 #else | 580 #else |
581 if (ubyte_at(0) == Assembler::REX_WR && ubyte_at(1) == NativeMovRegMem::instruction_code_mem2reg && ubyte_at(2) == 0x15) { // mov r10, rip[...] | 581 if (ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl && |
582 address fault = addr_at(7) + int_at(3); | 582 ubyte_at(1) == 0x05) { // 00 rax 101 |
583 return os::is_poll_address(fault); | |
584 } else if (ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl && ubyte_at(1) == 0x05) { // 00 rax 101 | |
585 address fault = addr_at(6) + int_at(2); | 583 address fault = addr_at(6) + int_at(2); |
586 return os::is_poll_address(fault); | 584 return os::is_poll_address(fault); |
587 } else { | 585 } else { |
588 return false; | 586 return false; |
589 } | 587 } |