提交 b1f0e53b 编写于 作者: C coleenp

6958465: Sparc aten build24.0: openjdk-7.ea-b96 failed Error: Formal argument...

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
上级 4e336f54
...@@ -626,7 +626,7 @@ void MacroAssembler::jmp(Register r1, int offset, const char* file, int line ) { ...@@ -626,7 +626,7 @@ void MacroAssembler::jmp(Register r1, int offset, const char* file, int line ) {
} }
// This code sequence is relocatable to any address, even on LP64. // This code sequence is relocatable to any address, even on LP64.
void MacroAssembler::jumpl(AddressLiteral& addrlit, Register temp, Register d, int offset, const char* file, int line) { void MacroAssembler::jumpl(const AddressLiteral& addrlit, Register temp, Register d, int offset, const char* file, int line) {
assert_not_delayed(); assert_not_delayed();
// Force fixed length sethi because NativeJump and NativeFarCall don't handle // Force fixed length sethi because NativeJump and NativeFarCall don't handle
// variable length instruction streams. // variable length instruction streams.
...@@ -672,7 +672,7 @@ void MacroAssembler::jumpl(AddressLiteral& addrlit, Register temp, Register d, i ...@@ -672,7 +672,7 @@ void MacroAssembler::jumpl(AddressLiteral& addrlit, Register temp, Register d, i
} }
} }
void MacroAssembler::jump(AddressLiteral& addrlit, Register temp, int offset, const char* file, int line) { void MacroAssembler::jump(const AddressLiteral& addrlit, Register temp, int offset, const char* file, int line) {
jumpl(addrlit, temp, G0, offset, file, line); jumpl(addrlit, temp, G0, offset, file, line);
} }
......
...@@ -1974,12 +1974,12 @@ public: ...@@ -1974,12 +1974,12 @@ public:
// address pseudos: make these names unlike instruction names to avoid confusion // address pseudos: make these names unlike instruction names to avoid confusion
inline intptr_t load_pc_address( Register reg, int bytes_to_skip ); inline intptr_t load_pc_address( Register reg, int bytes_to_skip );
inline void load_contents(AddressLiteral& addrlit, Register d, int offset = 0); inline void load_contents(const AddressLiteral& addrlit, Register d, int offset = 0);
inline void load_ptr_contents(AddressLiteral& addrlit, Register d, int offset = 0); inline void load_ptr_contents(const AddressLiteral& addrlit, Register d, int offset = 0);
inline void store_contents(Register s, AddressLiteral& addrlit, Register temp, int offset = 0); inline void store_contents(Register s, const AddressLiteral& addrlit, Register temp, int offset = 0);
inline void store_ptr_contents(Register s, AddressLiteral& addrlit, Register temp, int offset = 0); inline void store_ptr_contents(Register s, const AddressLiteral& addrlit, Register temp, int offset = 0);
inline void jumpl_to(AddressLiteral& addrlit, Register temp, Register d, int offset = 0); inline void jumpl_to(const AddressLiteral& addrlit, Register temp, Register d, int offset = 0);
inline void jump_to(AddressLiteral& addrlit, Register temp, int offset = 0); inline void jump_to(const AddressLiteral& addrlit, Register temp, int offset = 0);
inline void jump_indirect_to(Address& a, Register temp, int ld_offset = 0, int jmp_offset = 0); inline void jump_indirect_to(Address& a, Register temp, int ld_offset = 0, int jmp_offset = 0);
// ring buffer traceable jumps // ring buffer traceable jumps
...@@ -1987,8 +1987,8 @@ public: ...@@ -1987,8 +1987,8 @@ public:
void jmp2( Register r1, Register r2, const char* file, int line ); void jmp2( Register r1, Register r2, const char* file, int line );
void jmp ( Register r1, int offset, const char* file, int line ); void jmp ( Register r1, int offset, const char* file, int line );
void jumpl(AddressLiteral& addrlit, Register temp, Register d, int offset, const char* file, int line); void jumpl(const AddressLiteral& addrlit, Register temp, Register d, int offset, const char* file, int line);
void jump (AddressLiteral& addrlit, Register temp, int offset, const char* file, int line); void jump (const AddressLiteral& addrlit, Register temp, int offset, const char* file, int line);
// argument pseudos: // argument pseudos:
......
...@@ -650,28 +650,28 @@ inline intptr_t MacroAssembler::load_pc_address( Register reg, int bytes_to_skip ...@@ -650,28 +650,28 @@ inline intptr_t MacroAssembler::load_pc_address( Register reg, int bytes_to_skip
} }
inline void MacroAssembler::load_contents(AddressLiteral& addrlit, Register d, int offset) { inline void MacroAssembler::load_contents(const AddressLiteral& addrlit, Register d, int offset) {
assert_not_delayed(); assert_not_delayed();
sethi(addrlit, d); sethi(addrlit, d);
ld(d, addrlit.low10() + offset, d); ld(d, addrlit.low10() + offset, d);
} }
inline void MacroAssembler::load_ptr_contents(AddressLiteral& addrlit, Register d, int offset) { inline void MacroAssembler::load_ptr_contents(const AddressLiteral& addrlit, Register d, int offset) {
assert_not_delayed(); assert_not_delayed();
sethi(addrlit, d); sethi(addrlit, d);
ld_ptr(d, addrlit.low10() + offset, d); ld_ptr(d, addrlit.low10() + offset, d);
} }
inline void MacroAssembler::store_contents(Register s, AddressLiteral& addrlit, Register temp, int offset) { inline void MacroAssembler::store_contents(Register s, const AddressLiteral& addrlit, Register temp, int offset) {
assert_not_delayed(); assert_not_delayed();
sethi(addrlit, temp); sethi(addrlit, temp);
st(s, temp, addrlit.low10() + offset); st(s, temp, addrlit.low10() + offset);
} }
inline void MacroAssembler::store_ptr_contents(Register s, AddressLiteral& addrlit, Register temp, int offset) { inline void MacroAssembler::store_ptr_contents(Register s, const AddressLiteral& addrlit, Register temp, int offset) {
assert_not_delayed(); assert_not_delayed();
sethi(addrlit, temp); sethi(addrlit, temp);
st_ptr(s, temp, addrlit.low10() + offset); st_ptr(s, temp, addrlit.low10() + offset);
...@@ -679,7 +679,7 @@ inline void MacroAssembler::store_ptr_contents(Register s, AddressLiteral& addrl ...@@ -679,7 +679,7 @@ inline void MacroAssembler::store_ptr_contents(Register s, AddressLiteral& addrl
// This code sequence is relocatable to any address, even on LP64. // This code sequence is relocatable to any address, even on LP64.
inline void MacroAssembler::jumpl_to(AddressLiteral& addrlit, Register temp, Register d, int offset) { inline void MacroAssembler::jumpl_to(const AddressLiteral& addrlit, Register temp, Register d, int offset) {
assert_not_delayed(); assert_not_delayed();
// Force fixed length sethi because NativeJump and NativeFarCall don't handle // Force fixed length sethi because NativeJump and NativeFarCall don't handle
// variable length instruction streams. // variable length instruction streams.
...@@ -688,7 +688,7 @@ inline void MacroAssembler::jumpl_to(AddressLiteral& addrlit, Register temp, Reg ...@@ -688,7 +688,7 @@ inline void MacroAssembler::jumpl_to(AddressLiteral& addrlit, Register temp, Reg
} }
inline void MacroAssembler::jump_to(AddressLiteral& addrlit, Register temp, int offset) { inline void MacroAssembler::jump_to(const AddressLiteral& addrlit, Register temp, int offset) {
jumpl_to(addrlit, temp, G0, offset); jumpl_to(addrlit, temp, G0, offset);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册