equal
deleted
inserted
replaced
673 |
673 |
674 // make sure klass is 'reasonable', which is not zero. |
674 // make sure klass is 'reasonable', which is not zero. |
675 __ movptr(rax, Address(rax, oopDesc::klass_offset_in_bytes())); // get klass |
675 __ movptr(rax, Address(rax, oopDesc::klass_offset_in_bytes())); // get klass |
676 __ testptr(rax, rax); |
676 __ testptr(rax, rax); |
677 __ jcc(Assembler::zero, error); // if klass is NULL it is broken |
677 __ jcc(Assembler::zero, error); // if klass is NULL it is broken |
678 // TODO: Future assert that klass is lower 4g memory for UseCompressedKlassPointers |
|
679 |
678 |
680 // return if everything seems ok |
679 // return if everything seems ok |
681 __ bind(exit); |
680 __ bind(exit); |
682 __ movptr(rax, Address(rsp, 5 * wordSize)); // get saved rax, back |
681 __ movptr(rax, Address(rsp, 5 * wordSize)); // get saved rax, back |
683 __ pop(rdx); // restore rdx |
682 __ pop(rdx); // restore rdx |