equal
deleted
inserted
replaced
52 /** Debugging support */ |
52 /** Debugging support */ |
53 public OopHandle getValueAsOopHandle(Oop obj) { |
53 public OopHandle getValueAsOopHandle(Oop obj) { |
54 if (!isVMField() && !obj.isInstance() && !obj.isArray()) { |
54 if (!isVMField() && !obj.isInstance() && !obj.isArray()) { |
55 throw new InternalError(obj.toString()); |
55 throw new InternalError(obj.toString()); |
56 } |
56 } |
57 return obj.getHandle().getOopHandleAt(getOffset()); |
57 |
|
58 return VM.getVM().getUniverse().heap().oop_load_at(obj.getHandle(), getOffset()); |
58 } |
59 } |
59 |
60 |
60 public Oop getValue(VMObject obj) { |
61 public Oop getValue(VMObject obj) { |
61 return VM.getVM().getObjectHeap().newOop(getValueAsOopHandle(obj)); |
62 return VM.getVM().getObjectHeap().newOop(getValueAsOopHandle(obj)); |
62 } |
63 } |