8201167: Remove MacroAssembler::cmp_heap_oop on x86
Reviewed-by: kvn, tschatzl
This commit is contained in:
parent
30079a437a
commit
d124c7d779
@ -6624,25 +6624,6 @@ void MacroAssembler::store_heap_oop(Address dst, Register src) {
|
||||
movptr(dst, src);
|
||||
}
|
||||
|
||||
void MacroAssembler::cmp_heap_oop(Register src1, Address src2, Register tmp) {
|
||||
assert_different_registers(src1, tmp);
|
||||
#ifdef _LP64
|
||||
if (UseCompressedOops) {
|
||||
bool did_push = false;
|
||||
if (tmp == noreg) {
|
||||
tmp = rax;
|
||||
push(tmp);
|
||||
did_push = true;
|
||||
assert(!src2.uses(rsp), "can't push");
|
||||
}
|
||||
load_heap_oop(tmp, src2);
|
||||
cmpptr(src1, tmp);
|
||||
if (did_push) pop(tmp);
|
||||
} else
|
||||
#endif
|
||||
cmpptr(src1, src2);
|
||||
}
|
||||
|
||||
// Used for storing NULLs.
|
||||
void MacroAssembler::store_heap_oop_null(Address dst) {
|
||||
#ifdef _LP64
|
||||
|
@ -337,7 +337,6 @@ class MacroAssembler: public Assembler {
|
||||
void load_heap_oop(Register dst, Address src);
|
||||
void load_heap_oop_not_null(Register dst, Address src);
|
||||
void store_heap_oop(Address dst, Register src);
|
||||
void cmp_heap_oop(Register src1, Address src2, Register tmp = noreg);
|
||||
|
||||
// Used for storing NULL. All other oop constants should be
|
||||
// stored using routines that take a jobject.
|
||||
|
Loading…
Reference in New Issue
Block a user