Mercurial > hg > graal-jvmci-8
comparison src/cpu/x86/vm/interp_masm_x86_64.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 void InterpreterMacroAssembler::get_cache_and_index_at_bcp(Register cache, | 232 void InterpreterMacroAssembler::get_cache_and_index_at_bcp(Register cache, |
233 Register index, | 233 Register index, |
234 int bcp_offset, | 234 int bcp_offset, |
235 size_t index_size) { | 235 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 // convert from field index to ConstantPoolCacheEntry index | 240 // convert from field index to ConstantPoolCacheEntry index |
241 shll(index, 2); | 241 shll(index, 2); |
242 } | |
243 | |
244 | |
245 void InterpreterMacroAssembler::get_cache_and_index_and_bytecode_at_bcp(Register cache, | |
246 Register index, | |
247 Register bytecode, | |
248 int byte_no, | |
249 int bcp_offset, | |
250 size_t index_size) { | |
251 get_cache_and_index_at_bcp(cache, index, bcp_offset, index_size); | |
252 // We use a 32-bit load here since the layout of 64-bit words on | |
253 // little-endian machines allow us that. | |
254 movl(bytecode, Address(cache, index, Address::times_ptr, constantPoolCacheOopDesc::base_offset() + ConstantPoolCacheEntry::indices_offset())); | |
255 const int shift_count = (1 + byte_no) * BitsPerByte; | |
256 shrl(bytecode, shift_count); | |
257 andl(bytecode, 0xFF); | |
242 } | 258 } |
243 | 259 |
244 | 260 |
245 void InterpreterMacroAssembler::get_cache_entry_pointer_at_bcp(Register cache, | 261 void InterpreterMacroAssembler::get_cache_entry_pointer_at_bcp(Register cache, |
246 Register tmp, | 262 Register tmp, |