Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/oops/CIntField.java @ 3945:8ed53447f690
Merge
author | iveresov |
---|---|
date | Thu, 15 Sep 2011 12:44:09 -0700 |
parents | f6f3bb0ee072 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
3929:f94227b6117b | 3945:8ed53447f690 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 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. |
39 private boolean isUnsigned; | 39 private boolean isUnsigned; |
40 | 40 |
41 public long getValue(Oop obj) { | 41 public long getValue(Oop obj) { |
42 return obj.getHandle().getCIntegerAt(getOffset(), size, isUnsigned); | 42 return obj.getHandle().getCIntegerAt(getOffset(), size, isUnsigned); |
43 } | 43 } |
44 public long getValue(Address addr) { | |
45 return addr.getCIntegerAt(getOffset(), size, isUnsigned); | |
46 } | |
44 public void setValue(Oop obj, long value) throws MutationException { | 47 public void setValue(Oop obj, long value) throws MutationException { |
45 // Fix this: set* missing in Address | 48 // Fix this: set* missing in Address |
46 } | 49 } |
47 } | 50 } |