Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_GraphBuilder.cpp @ 2376:c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
author | never |
---|---|
date | Fri, 18 Mar 2011 16:00:34 -0700 |
parents | 425688247f3d |
children | 3d58a4983660 e1162778c1c8 |
comparison
equal
deleted
inserted
replaced
2375:d673ef06fe96 | 2376:c7f3d0b4570f |
---|---|
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; |