equal
deleted
inserted
replaced
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; |