diff src/share/vm/graal/graalCompilerToVM.cpp @ 4461:539fca6a3b98

Merge
author Christian Haeubl <christian.haeubl@oracle.com>
date Thu, 02 Feb 2012 16:07:52 -0800
parents 48756b901156 b4b16e4e043f
children f400f9554f09
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompilerToVM.cpp	Thu Feb 02 15:40:30 2012 -0800
+++ b/src/share/vm/graal/graalCompilerToVM.cpp	Thu Feb 02 16:07:52 2012 -0800
@@ -378,7 +378,9 @@
   
   constantPoolOop cp = instanceKlass::cast(java_lang_Class::as_klassOop(HotSpotTypeResolved::javaMirror(type)))->constants();
   int byteCode = (op & 0xFF);
-  if (byteCode != Bytecodes::_checkcast && byteCode != Bytecodes::_instanceof && byteCode != Bytecodes::_new && byteCode != Bytecodes::_anewarray && byteCode != Bytecodes::_multianewarray) {
+  if (byteCode != Bytecodes::_checkcast && byteCode != Bytecodes::_instanceof && byteCode != Bytecodes::_new && byteCode != Bytecodes::_anewarray
+      && byteCode != Bytecodes::_multianewarray && byteCode != Bytecodes::_ldc && byteCode != Bytecodes::_ldc_w && byteCode != Bytecodes::_ldc2_w)
+  {
     index = cp->remap_instruction_operand_from_cache(GraalCompiler::to_cp_index_u2(index));
   }
   constantTag tag = cp->tag_at(index);