comparison src/cpu/sparc/vm/assembler_sparc.cpp @ 1680:a64438a2b7e8

6958465: Sparc aten build24.0: openjdk-7.ea-b96 failed Error: Formal argument ... requires an lvalue Summary: Fix compilation errors. Made non-const references const so can be assigned with lvalue. Reviewed-by: phh, xlu
author coleenp
date Wed, 28 Jul 2010 17:57:43 -0400
parents c18cbe5936b8
children 3e8fbc61cee8
comparison
equal deleted inserted replaced
1679:3d90023429ec 1680:a64438a2b7e8
624 } 624 }
625 jmp(r1, offset); 625 jmp(r1, offset);
626 } 626 }
627 627
628 // This code sequence is relocatable to any address, even on LP64. 628 // This code sequence is relocatable to any address, even on LP64.
629 void MacroAssembler::jumpl(AddressLiteral& addrlit, Register temp, Register d, int offset, const char* file, int line) { 629 void MacroAssembler::jumpl(const AddressLiteral& addrlit, Register temp, Register d, int offset, const char* file, int line) {
630 assert_not_delayed(); 630 assert_not_delayed();
631 // Force fixed length sethi because NativeJump and NativeFarCall don't handle 631 // Force fixed length sethi because NativeJump and NativeFarCall don't handle
632 // variable length instruction streams. 632 // variable length instruction streams.
633 patchable_sethi(addrlit, temp); 633 patchable_sethi(addrlit, temp);
634 Address a(temp, addrlit.low10() + offset); // Add the offset to the displacement. 634 Address a(temp, addrlit.low10() + offset); // Add the offset to the displacement.
670 } else { 670 } else {
671 jmpl(a.base(), a.disp(), d); 671 jmpl(a.base(), a.disp(), d);
672 } 672 }
673 } 673 }
674 674
675 void MacroAssembler::jump(AddressLiteral& addrlit, Register temp, int offset, const char* file, int line) { 675 void MacroAssembler::jump(const AddressLiteral& addrlit, Register temp, int offset, const char* file, int line) {
676 jumpl(addrlit, temp, G0, offset, file, line); 676 jumpl(addrlit, temp, G0, offset, file, line);
677 } 677 }
678 678
679 679
680 // Convert to C varargs format 680 // Convert to C varargs format