Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/oops/IntField.java @ 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 | c18cbe5936b8 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
2375:d673ef06fe96 | 2376:c7f3d0b4570f |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
38 | 38 |
39 public IntField(InstanceKlass holder, int fieldArrayIndex) { | 39 public IntField(InstanceKlass holder, int fieldArrayIndex) { |
40 super(holder, fieldArrayIndex); | 40 super(holder, fieldArrayIndex); |
41 } | 41 } |
42 | 42 |
43 public int getValue(Oop obj) { return obj.getHandle().getJIntAt(getOffset()); } | 43 public int getValue(Oop obj) { |
44 if (!isVMField() && !obj.isInstance() && !obj.isArray()) { | |
45 throw new InternalError(obj.toString()); | |
46 } | |
47 return obj.getHandle().getJIntAt(getOffset()); | |
48 } | |
44 public void setValue(Oop obj, int value) throws MutationException { | 49 public void setValue(Oop obj, int value) throws MutationException { |
45 // Fix this: setJIntAt is missing in Address | 50 // Fix this: setJIntAt is missing in Address |
46 } | 51 } |
47 } | 52 } |