1.1 --- a/src/share/vm/asm/codeBuffer.hpp Tue Nov 27 17:41:38 2012 -0800 1.2 +++ b/src/share/vm/asm/codeBuffer.hpp Fri Nov 30 11:44:05 2012 -0800 1.3 @@ -30,8 +30,6 @@ 1.4 #include "code/relocInfo.hpp" 1.5 1.6 class CodeComments; 1.7 -class AbstractAssembler; 1.8 -class MacroAssembler; 1.9 class PhaseCFG; 1.10 class Compile; 1.11 class BufferBlob; 1.12 @@ -194,10 +192,14 @@ 1.13 } 1.14 1.15 // Code emission 1.16 - void emit_int8 (int8_t x) { *((int8_t*) end()) = x; set_end(end() + 1); } 1.17 - void emit_int16(int16_t x) { *((int16_t*) end()) = x; set_end(end() + 2); } 1.18 - void emit_int32(int32_t x) { *((int32_t*) end()) = x; set_end(end() + 4); } 1.19 - void emit_int64(int64_t x) { *((int64_t*) end()) = x; set_end(end() + 8); } 1.20 + void emit_int8 ( int8_t x) { *((int8_t*) end()) = x; set_end(end() + sizeof(int8_t)); } 1.21 + void emit_int16( int16_t x) { *((int16_t*) end()) = x; set_end(end() + sizeof(int16_t)); } 1.22 + void emit_int32( int32_t x) { *((int32_t*) end()) = x; set_end(end() + sizeof(int32_t)); } 1.23 + void emit_int64( int64_t x) { *((int64_t*) end()) = x; set_end(end() + sizeof(int64_t)); } 1.24 + 1.25 + void emit_float( jfloat x) { *((jfloat*) end()) = x; set_end(end() + sizeof(jfloat)); } 1.26 + void emit_double(jdouble x) { *((jdouble*) end()) = x; set_end(end() + sizeof(jdouble)); } 1.27 + void emit_address(address x) { *((address*) end()) = x; set_end(end() + sizeof(address)); } 1.28 1.29 // Share a scratch buffer for relocinfo. (Hacky; saves a resource allocation.) 1.30 void initialize_shared_locs(relocInfo* buf, int length);