hotspot/src/cpu/x86/vm/interp_masm_x86_64.cpp
changeset 13391 30245956af37
parent 10565 dc90c239f4ec
child 13728 882756847a04
equal deleted inserted replaced
13309:50c604cb0d5f 13391:30245956af37
   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,