hotspot/src/cpu/x86/vm/interp_masm_x86_64.cpp
changeset 24322 c2978d1578e3
parent 23203 76c2a23e2537
child 25714 87fa6860b5ae
equal deleted inserted replaced
24320:394d55c783dc 24322:c2978d1578e3
   203                                                        size_t index_size) {
   203                                                        size_t index_size) {
   204   assert(bcp_offset > 0, "bcp is still pointing to start of bytecode");
   204   assert(bcp_offset > 0, "bcp is still pointing to start of bytecode");
   205   if (index_size == sizeof(u2)) {
   205   if (index_size == sizeof(u2)) {
   206     load_unsigned_short(index, Address(r13, bcp_offset));
   206     load_unsigned_short(index, Address(r13, bcp_offset));
   207   } else if (index_size == sizeof(u4)) {
   207   } else if (index_size == sizeof(u4)) {
   208     assert(EnableInvokeDynamic, "giant index used only for JSR 292");
       
   209     movl(index, Address(r13, bcp_offset));
   208     movl(index, Address(r13, bcp_offset));
   210     // Check if the secondary index definition is still ~x, otherwise
   209     // Check if the secondary index definition is still ~x, otherwise
   211     // we have to change the following assembler code to calculate the
   210     // we have to change the following assembler code to calculate the
   212     // plain index.
   211     // plain index.
   213     assert(ConstantPool::decode_invokedynamic_index(~123) == 123, "else change next line");
   212     assert(ConstantPool::decode_invokedynamic_index(~123) == 123, "else change next line");