comparison src/cpu/x86/vm/stubGenerator_x86_64.cpp @ 4114:6729bbc1fcd6

7003454: order constants in constant table by number of references in code Reviewed-by: kvn, never, bdelsart
author twisti
date Wed, 16 Nov 2011 01:39:50 -0800
parents f08d439fab8c
children 59bc0d4d9ea3
comparison
equal deleted inserted replaced
4113:8c57262447d3 4114:6729bbc1fcd6
1266 __ addptr(end, BytesPerHeapOop); 1266 __ addptr(end, BytesPerHeapOop);
1267 __ shrptr(end, CardTableModRefBS::card_shift); 1267 __ shrptr(end, CardTableModRefBS::card_shift);
1268 __ subptr(end, start); // number of bytes to copy 1268 __ subptr(end, start); // number of bytes to copy
1269 1269
1270 intptr_t disp = (intptr_t) ct->byte_map_base; 1270 intptr_t disp = (intptr_t) ct->byte_map_base;
1271 if (__ is_simm32(disp)) { 1271 if (Assembler::is_simm32(disp)) {
1272 Address cardtable(noreg, noreg, Address::no_scale, disp); 1272 Address cardtable(noreg, noreg, Address::no_scale, disp);
1273 __ lea(scratch, cardtable); 1273 __ lea(scratch, cardtable);
1274 } else { 1274 } else {
1275 ExternalAddress cardtable((address)disp); 1275 ExternalAddress cardtable((address)disp);
1276 __ lea(scratch, cardtable); 1276 __ lea(scratch, cardtable);