comparison src/cpu/x86/vm/interp_masm_x86_32.cpp @ 3852:fdb992d83a87

7071653: JSR 292: call site change notification should be pushed not pulled Reviewed-by: kvn, never, bdelsart
author twisti
date Tue, 16 Aug 2011 04:14:05 -0700
parents 341a57af9b0a
children f08d439fab8c
comparison
equal deleted inserted replaced
3851:95134e034042 3852:fdb992d83a87
231 } 231 }
232 232
233 233
234 void InterpreterMacroAssembler::get_cache_and_index_at_bcp(Register cache, Register index, 234 void InterpreterMacroAssembler::get_cache_and_index_at_bcp(Register cache, Register index,
235 int bcp_offset, size_t index_size) { 235 int bcp_offset, size_t index_size) {
236 assert(cache != index, "must use different registers"); 236 assert_different_registers(cache, index);
237 get_cache_index_at_bcp(index, bcp_offset, index_size); 237 get_cache_index_at_bcp(index, bcp_offset, index_size);
238 movptr(cache, Address(rbp, frame::interpreter_frame_cache_offset * wordSize)); 238 movptr(cache, Address(rbp, frame::interpreter_frame_cache_offset * wordSize));
239 assert(sizeof(ConstantPoolCacheEntry) == 4*wordSize, "adjust code below"); 239 assert(sizeof(ConstantPoolCacheEntry) == 4*wordSize, "adjust code below");
240 shlptr(index, 2); // convert from field index to ConstantPoolCacheEntry index 240 shlptr(index, 2); // convert from field index to ConstantPoolCacheEntry index
241 }
242
243
244 void InterpreterMacroAssembler::get_cache_and_index_and_bytecode_at_bcp(Register cache,
245 Register index,
246 Register bytecode,
247 int byte_no,
248 int bcp_offset,
249 size_t index_size) {
250 get_cache_and_index_at_bcp(cache, index, bcp_offset, index_size);
251 movptr(bytecode, Address(cache, index, Address::times_ptr, constantPoolCacheOopDesc::base_offset() + ConstantPoolCacheEntry::indices_offset()));
252 const int shift_count = (1 + byte_no) * BitsPerByte;
253 shrptr(bytecode, shift_count);
254 andptr(bytecode, 0xFF);
241 } 255 }
242 256
243 257
244 void InterpreterMacroAssembler::get_cache_entry_pointer_at_bcp(Register cache, Register tmp, 258 void InterpreterMacroAssembler::get_cache_entry_pointer_at_bcp(Register cache, Register tmp,
245 int bcp_offset, size_t index_size) { 259 int bcp_offset, size_t index_size) {