src/cpu/sparc/vm/assembler_sparc.inline.hpp

changeset 2035
a64438a2b7e8
parent 1907
c18cbe5936b8
child 2266
fff777a71346
     1.1 --- a/src/cpu/sparc/vm/assembler_sparc.inline.hpp	Wed Jul 28 17:38:21 2010 +0100
     1.2 +++ b/src/cpu/sparc/vm/assembler_sparc.inline.hpp	Wed Jul 28 17:57:43 2010 -0400
     1.3 @@ -650,28 +650,28 @@
     1.4  }
     1.5  
     1.6  
     1.7 -inline void MacroAssembler::load_contents(AddressLiteral& addrlit, Register d, int offset) {
     1.8 +inline void MacroAssembler::load_contents(const AddressLiteral& addrlit, Register d, int offset) {
     1.9    assert_not_delayed();
    1.10    sethi(addrlit, d);
    1.11    ld(d, addrlit.low10() + offset, d);
    1.12  }
    1.13  
    1.14  
    1.15 -inline void MacroAssembler::load_ptr_contents(AddressLiteral& addrlit, Register d, int offset) {
    1.16 +inline void MacroAssembler::load_ptr_contents(const AddressLiteral& addrlit, Register d, int offset) {
    1.17    assert_not_delayed();
    1.18    sethi(addrlit, d);
    1.19    ld_ptr(d, addrlit.low10() + offset, d);
    1.20  }
    1.21  
    1.22  
    1.23 -inline void MacroAssembler::store_contents(Register s, AddressLiteral& addrlit, Register temp, int offset) {
    1.24 +inline void MacroAssembler::store_contents(Register s, const AddressLiteral& addrlit, Register temp, int offset) {
    1.25    assert_not_delayed();
    1.26    sethi(addrlit, temp);
    1.27    st(s, temp, addrlit.low10() + offset);
    1.28  }
    1.29  
    1.30  
    1.31 -inline void MacroAssembler::store_ptr_contents(Register s, AddressLiteral& addrlit, Register temp, int offset) {
    1.32 +inline void MacroAssembler::store_ptr_contents(Register s, const AddressLiteral& addrlit, Register temp, int offset) {
    1.33    assert_not_delayed();
    1.34    sethi(addrlit, temp);
    1.35    st_ptr(s, temp, addrlit.low10() + offset);
    1.36 @@ -679,7 +679,7 @@
    1.37  
    1.38  
    1.39  // This code sequence is relocatable to any address, even on LP64.
    1.40 -inline void MacroAssembler::jumpl_to(AddressLiteral& addrlit, Register temp, Register d, int offset) {
    1.41 +inline void MacroAssembler::jumpl_to(const AddressLiteral& addrlit, Register temp, Register d, int offset) {
    1.42    assert_not_delayed();
    1.43    // Force fixed length sethi because NativeJump and NativeFarCall don't handle
    1.44    // variable length instruction streams.
    1.45 @@ -688,7 +688,7 @@
    1.46  }
    1.47  
    1.48  
    1.49 -inline void MacroAssembler::jump_to(AddressLiteral& addrlit, Register temp, int offset) {
    1.50 +inline void MacroAssembler::jump_to(const AddressLiteral& addrlit, Register temp, int offset) {
    1.51    jumpl_to(addrlit, temp, G0, offset);
    1.52  }
    1.53  

mercurial