1.1 --- a/src/cpu/sparc/vm/assembler_sparc.hpp Mon Dec 13 22:41:03 2010 -0800 1.2 +++ b/src/cpu/sparc/vm/assembler_sparc.hpp Tue Dec 14 12:44:30 2010 -0800 1.3 @@ -1884,23 +1884,24 @@ 1.4 void sethi(const AddressLiteral& addrlit, Register d); 1.5 void patchable_sethi(const AddressLiteral& addrlit, Register d); 1.6 1.7 - // compute the size of a sethi/set 1.8 - static int size_of_sethi( address a, bool worst_case = false ); 1.9 - static int worst_case_size_of_set(); 1.10 + // compute the number of instructions for a sethi/set 1.11 + static int insts_for_sethi( address a, bool worst_case = false ); 1.12 + static int worst_case_insts_for_set(); 1.13 1.14 // set may be either setsw or setuw (high 32 bits may be zero or sign) 1.15 private: 1.16 void internal_set(const AddressLiteral& al, Register d, bool ForceRelocatable); 1.17 + static int insts_for_internal_set(intptr_t value); 1.18 public: 1.19 void set(const AddressLiteral& addrlit, Register d); 1.20 void set(intptr_t value, Register d); 1.21 void set(address addr, Register d, RelocationHolder const& rspec); 1.22 + static int insts_for_set(intptr_t value) { return insts_for_internal_set(value); } 1.23 + 1.24 void patchable_set(const AddressLiteral& addrlit, Register d); 1.25 void patchable_set(intptr_t value, Register d); 1.26 void set64(jlong value, Register d, Register tmp); 1.27 - 1.28 - // Compute size of set64. 1.29 - static int size_of_set64(jlong value); 1.30 + static int insts_for_set64(jlong value); 1.31 1.32 // sign-extend 32 to 64 1.33 inline void signx( Register s, Register d ) { sra( s, G0, d); }