hotspot/src/share/vm/c1/c1_GraphBuilder.cpp
changeset 8725 8c1e3dd5fe1b
parent 8671 13ffa40a2f0a
child 9176 42d9d1010f38
child 8872 36680c58660e
equal deleted inserted replaced
8724:693c6b883b54 8725:8c1e3dd5fe1b
  1469 
  1469 
  1470   Value obj = NULL;
  1470   Value obj = NULL;
  1471   if (code == Bytecodes::_getstatic || code == Bytecodes::_putstatic) {
  1471   if (code == Bytecodes::_getstatic || code == Bytecodes::_putstatic) {
  1472     if (state_before != NULL) {
  1472     if (state_before != NULL) {
  1473       // build a patching constant
  1473       // build a patching constant
  1474       obj = new Constant(new ClassConstant(holder), state_before);
  1474       obj = new Constant(new InstanceConstant(holder->java_mirror()), state_before);
  1475     } else {
  1475     } else {
  1476       obj = new Constant(new ClassConstant(holder));
  1476       obj = new Constant(new InstanceConstant(holder->java_mirror()));
  1477     }
  1477     }
  1478   }
  1478   }
  1479 
  1479 
  1480 
  1480 
  1481   const int offset = !needs_patching ? field->offset() : -1;
  1481   const int offset = !needs_patching ? field->offset() : -1;