Mercurial > hg > graal-compiler
comparison src/cpu/x86/vm/interp_masm_x86_64.cpp @ 6266:1d7922586cf6
7023639: JSR 292 method handle invocation needs a fast path for compiled code
6984705: JSR 292 method handle creation should not go through JNI
Summary: remove assembly code for JDK 7 chained method handles
Reviewed-by: jrose, twisti, kvn, mhaupt
Contributed-by: John Rose <john.r.rose@oracle.com>, Christian Thalinger <christian.thalinger@oracle.com>, Michael Haupt <michael.haupt@oracle.com>
author | twisti |
---|---|
date | Tue, 24 Jul 2012 10:51:00 -0700 |
parents | f08d439fab8c |
children | 957c266d8bc5 da91efe96a93 |
comparison
equal
deleted
inserted
replaced
6241:aba91a731143 | 6266:1d7922586cf6 |
---|---|
254 get_cache_and_index_at_bcp(cache, index, bcp_offset, index_size); | 254 get_cache_and_index_at_bcp(cache, index, bcp_offset, index_size); |
255 // We use a 32-bit load here since the layout of 64-bit words on | 255 // We use a 32-bit load here since the layout of 64-bit words on |
256 // little-endian machines allow us that. | 256 // little-endian machines allow us that. |
257 movl(bytecode, Address(cache, index, Address::times_ptr, constantPoolCacheOopDesc::base_offset() + ConstantPoolCacheEntry::indices_offset())); | 257 movl(bytecode, Address(cache, index, Address::times_ptr, constantPoolCacheOopDesc::base_offset() + ConstantPoolCacheEntry::indices_offset())); |
258 const int shift_count = (1 + byte_no) * BitsPerByte; | 258 const int shift_count = (1 + byte_no) * BitsPerByte; |
259 assert((byte_no == TemplateTable::f1_byte && shift_count == ConstantPoolCacheEntry::bytecode_1_shift) || | |
260 (byte_no == TemplateTable::f2_byte && shift_count == ConstantPoolCacheEntry::bytecode_2_shift), | |
261 "correct shift count"); | |
259 shrl(bytecode, shift_count); | 262 shrl(bytecode, shift_count); |
260 andl(bytecode, 0xFF); | 263 assert(ConstantPoolCacheEntry::bytecode_1_mask == ConstantPoolCacheEntry::bytecode_2_mask, "common mask"); |
264 andl(bytecode, ConstantPoolCacheEntry::bytecode_1_mask); | |
261 } | 265 } |
262 | 266 |
263 | 267 |
264 void InterpreterMacroAssembler::get_cache_entry_pointer_at_bcp(Register cache, | 268 void InterpreterMacroAssembler::get_cache_entry_pointer_at_bcp(Register cache, |
265 Register tmp, | 269 Register tmp, |