comparison agent/src/share/classes/sun/jvm/hotspot/oops/CIntField.java @ 3939:f6f3bb0ee072

7088955: add C2 IR support to the SA Reviewed-by: kvn
author never
date Sun, 11 Sep 2011 14:48:24 -0700
parents c18cbe5936b8
children da91efe96a93
comparison
equal deleted inserted replaced
3938:e6b1331a51d2 3939:f6f3bb0ee072
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 }