sun.jvm.hotspot.debugger.OopHandle Java Examples

The following examples show how to use sun.jvm.hotspot.debugger.OopHandle. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StackFrameImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReference thisObject() {
    validateStackFrame();
    MethodImpl currentMethod = (MethodImpl)location.method();
    if (currentMethod.isStatic() || currentMethod.isNative()) {
        return null;
    }
    if (thisObject == null) {
        StackValueCollection values = saFrame.getLocals();
        if (Assert.ASSERTS_ENABLED) {
            Assert.that(values.size() > 0, "this is missing");
        }
        // 'this' at index 0.
        if (values.get(0).getType() == BasicType.getTConflict()) {
          return null;
        }
        OopHandle handle = values.oopHandleAt(0);
        ObjectHeap heap = vm.saObjectHeap();
        thisObject = vm.objectMirror(heap.newOop(handle));
    }
    return thisObject;
}
 
Example #2
Source File: StackFrameImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReference thisObject() {
    validateStackFrame();
    MethodImpl currentMethod = (MethodImpl)location.method();
    if (currentMethod.isStatic() || currentMethod.isNative()) {
        return null;
    }
    if (thisObject == null) {
        StackValueCollection values = saFrame.getLocals();
        if (Assert.ASSERTS_ENABLED) {
            Assert.that(values.size() > 0, "this is missing");
        }
        // 'this' at index 0.
        if (values.get(0).getType() == BasicType.getTConflict()) {
          return null;
        }
        OopHandle handle = values.oopHandleAt(0);
        ObjectHeap heap = vm.saObjectHeap();
        thisObject = vm.objectMirror(heap.newOop(handle));
    }
    return thisObject;
}
 
Example #3
Source File: StackFrameImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReference thisObject() {
    validateStackFrame();
    MethodImpl currentMethod = (MethodImpl)location.method();
    if (currentMethod.isStatic() || currentMethod.isNative()) {
        return null;
    }
    if (thisObject == null) {
        StackValueCollection values = saFrame.getLocals();
        if (Assert.ASSERTS_ENABLED) {
            Assert.that(values.size() > 0, "this is missing");
        }
        // 'this' at index 0.
        if (values.get(0).getType() == BasicType.getTConflict()) {
          return null;
        }
        OopHandle handle = values.oopHandleAt(0);
        ObjectHeap heap = vm.saObjectHeap();
        thisObject = vm.objectMirror(heap.newOop(handle));
    }
    return thisObject;
}
 
Example #4
Source File: StackFrameImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReference thisObject() {
    validateStackFrame();
    MethodImpl currentMethod = (MethodImpl)location.method();
    if (currentMethod.isStatic() || currentMethod.isNative()) {
        return null;
    }
    if (thisObject == null) {
        StackValueCollection values = saFrame.getLocals();
        if (Assert.ASSERTS_ENABLED) {
            Assert.that(values.size() > 0, "this is missing");
        }
        // 'this' at index 0.
        if (values.get(0).getType() == BasicType.getTConflict()) {
          return null;
        }
        OopHandle handle = values.oopHandleAt(0);
        ObjectHeap heap = vm.saObjectHeap();
        thisObject = vm.objectMirror(heap.newOop(handle));
    }
    return thisObject;
}
 
Example #5
Source File: StackFrameImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReference thisObject() {
    validateStackFrame();
    MethodImpl currentMethod = (MethodImpl)location.method();
    if (currentMethod.isStatic() || currentMethod.isNative()) {
        return null;
    }
    if (thisObject == null) {
        StackValueCollection values = saFrame.getLocals();
        if (Assert.ASSERTS_ENABLED) {
            Assert.that(values.size() > 0, "this is missing");
        }
        // 'this' at index 0.
        if (values.get(0).getType() == BasicType.getTConflict()) {
          return null;
        }
        OopHandle handle = values.oopHandleAt(0);
        ObjectHeap heap = vm.saObjectHeap();
        thisObject = vm.objectMirror(heap.newOop(handle));
    }
    return thisObject;
}
 
Example #6
Source File: StackFrameImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReference thisObject() {
    validateStackFrame();
    MethodImpl currentMethod = (MethodImpl)location.method();
    if (currentMethod.isStatic() || currentMethod.isNative()) {
        return null;
    }
    if (thisObject == null) {
        StackValueCollection values = saFrame.getLocals();
        if (Assert.ASSERTS_ENABLED) {
            Assert.that(values.size() > 0, "this is missing");
        }
        // 'this' at index 0.
        if (values.get(0).getType() == BasicType.getTConflict()) {
          return null;
        }
        OopHandle handle = values.oopHandleAt(0);
        ObjectHeap heap = vm.saObjectHeap();
        thisObject = vm.objectMirror(heap.newOop(handle));
    }
    return thisObject;
}
 
Example #7
Source File: StackFrameImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public ObjectReference thisObject() {
    validateStackFrame();
    MethodImpl currentMethod = (MethodImpl)location.method();
    if (currentMethod.isStatic() || currentMethod.isNative()) {
        return null;
    }
    if (thisObject == null) {
        StackValueCollection values = saFrame.getLocals();
        if (Assert.ASSERTS_ENABLED) {
            Assert.that(values.size() > 0, "this is missing");
        }
        // 'this' at index 0.
        if (values.get(0).getType() == BasicType.getTConflict()) {
          return null;
        }
        OopHandle handle = values.oopHandleAt(0);
        ObjectHeap heap = vm.saObjectHeap();
        thisObject = vm.objectMirror(heap.newOop(handle));
    }
    return thisObject;
}
 
Example #8
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #9
Source File: LinuxDebuggerLocal.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #10
Source File: BsdDebuggerLocal.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #11
Source File: LinuxDebuggerLocal.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #12
Source File: BsdDebuggerLocal.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #13
Source File: LinuxDebuggerLocal.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #14
Source File: BsdDebuggerLocal.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #15
Source File: LinuxDebuggerLocal.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #16
Source File: BsdDebuggerLocal.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #17
Source File: LinuxDebuggerLocal.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #18
Source File: BsdDebuggerLocal.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #19
Source File: LinuxDebuggerLocal.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #20
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #21
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
public Place getParLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (parEden.contains(handle)) {
		return Place.InEden;
	}
	if (parOld.isIn(handle)) {
		return Place.InOld;
	}
	if (parSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example #22
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
private Place getCmsLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (cmsEden.contains(handle)) {
		return Place.InEden;
	}
	if (cmsOld.isIn(handle)) {
		return Place.InOld;
	}
	if (cmsSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example #23
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
public Place getParLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (parEden.contains(handle)) {
		return Place.InEden;
	}
	if (parOld.isIn(handle)) {
		return Place.InOld;
	}
	if (parSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example #24
Source File: BsdDebuggerLocal.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #25
Source File: HeapHistogramVisitor.java    From vjtools with Apache License 2.0 5 votes vote down vote up
private Place getCmsLocation(Oop obj) {
	OopHandle handle = obj.getHandle();

	if (cmsEden.contains(handle)) {
		return Place.InEden;
	}
	if (cmsOld.contains(handle)) {
		return Place.InOld;
	}
	if (cmsSur.contains(handle)) {
		return Place.InSurvivor;
	}

	return Place.Unknown;
}
 
Example #26
Source File: LinuxDebuggerLocal.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #27
Source File: BsdDebuggerLocal.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/** From the SymbolLookup interface via Debugger and JVMDebugger */
public synchronized OopHandle lookupOop(String objectName, String symbol) {
    Address addr = lookup(objectName, symbol);
    if (addr == null) {
        return null;
    }
    return addr.addOffsetToAsOopHandle(0);
}
 
Example #28
Source File: StackFrameImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private ValueImpl getSlotValue(StackValueCollection values,
                   BasicType variableType, int ss) {
    ValueImpl valueImpl = null;
    OopHandle handle = null;
    ObjectHeap heap = vm.saObjectHeap();
    if (values.get(ss).getType() == BasicType.getTConflict()) {
      // Dead locals, so just represent them as a zero of the appropriate type
      if (variableType == BasicType.T_BOOLEAN) {
        valueImpl = (BooleanValueImpl) vm.mirrorOf(false);
      } else if (variableType == BasicType.T_CHAR) {
        valueImpl = (CharValueImpl) vm.mirrorOf((char)0);
      } else if (variableType == BasicType.T_FLOAT) {
        valueImpl = (FloatValueImpl) vm.mirrorOf((float)0);
      } else if (variableType == BasicType.T_DOUBLE) {
        valueImpl = (DoubleValueImpl) vm.mirrorOf((double)0);
      } else if (variableType == BasicType.T_BYTE) {
        valueImpl = (ByteValueImpl) vm.mirrorOf((byte)0);
      } else if (variableType == BasicType.T_SHORT) {
        valueImpl = (ShortValueImpl) vm.mirrorOf((short)0);
      } else if (variableType == BasicType.T_INT) {
        valueImpl = (IntegerValueImpl) vm.mirrorOf((int)0);
      } else if (variableType == BasicType.T_LONG) {
        valueImpl = (LongValueImpl) vm.mirrorOf((long)0);
      } else if (variableType == BasicType.T_OBJECT) {
        // we may have an [Ljava/lang/Object; - i.e., Object[] with the
        // elements themselves may be arrays because every array is an Object.
        handle = null;
        valueImpl = (ObjectReferenceImpl) vm.objectMirror(heap.newOop(handle));
      } else if (variableType == BasicType.T_ARRAY) {
        handle = null;
        valueImpl = vm.arrayMirror((Array)heap.newOop(handle));
      } else if (variableType == BasicType.T_VOID) {
        valueImpl = new VoidValueImpl(vm);
      } else {
        throw new RuntimeException("Should not read here");
      }
    } else {
      if (variableType == BasicType.T_BOOLEAN) {
        valueImpl = (BooleanValueImpl) vm.mirrorOf(values.booleanAt(ss));
      } else if (variableType == BasicType.T_CHAR) {
        valueImpl = (CharValueImpl) vm.mirrorOf(values.charAt(ss));
      } else if (variableType == BasicType.T_FLOAT) {
        valueImpl = (FloatValueImpl) vm.mirrorOf(values.floatAt(ss));
      } else if (variableType == BasicType.T_DOUBLE) {
        valueImpl = (DoubleValueImpl) vm.mirrorOf(values.doubleAt(ss));
      } else if (variableType == BasicType.T_BYTE) {
        valueImpl = (ByteValueImpl) vm.mirrorOf(values.byteAt(ss));
      } else if (variableType == BasicType.T_SHORT) {
        valueImpl = (ShortValueImpl) vm.mirrorOf(values.shortAt(ss));
      } else if (variableType == BasicType.T_INT) {
        valueImpl = (IntegerValueImpl) vm.mirrorOf(values.intAt(ss));
      } else if (variableType == BasicType.T_LONG) {
        valueImpl = (LongValueImpl) vm.mirrorOf(values.longAt(ss));
      } else if (variableType == BasicType.T_OBJECT) {
        // we may have an [Ljava/lang/Object; - i.e., Object[] with the
        // elements themselves may be arrays because every array is an Object.
        handle = values.oopHandleAt(ss);
        valueImpl = (ObjectReferenceImpl) vm.objectMirror(heap.newOop(handle));
      } else if (variableType == BasicType.T_ARRAY) {
        handle = values.oopHandleAt(ss);
        valueImpl = vm.arrayMirror((Array)heap.newOop(handle));
      } else if (variableType == BasicType.T_VOID) {
        valueImpl = new VoidValueImpl(vm);
      } else {
        throw new RuntimeException("Should not read here");
      }
    }

    return valueImpl;
}
 
Example #29
Source File: StackFrameImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private ValueImpl getSlotValue(StackValueCollection values,
                   BasicType variableType, int ss) {
    ValueImpl valueImpl = null;
    OopHandle handle = null;
    ObjectHeap heap = vm.saObjectHeap();
    if (values.get(ss).getType() == BasicType.getTConflict()) {
      // Dead locals, so just represent them as a zero of the appropriate type
      if (variableType == BasicType.T_BOOLEAN) {
        valueImpl = (BooleanValueImpl) vm.mirrorOf(false);
      } else if (variableType == BasicType.T_CHAR) {
        valueImpl = (CharValueImpl) vm.mirrorOf((char)0);
      } else if (variableType == BasicType.T_FLOAT) {
        valueImpl = (FloatValueImpl) vm.mirrorOf((float)0);
      } else if (variableType == BasicType.T_DOUBLE) {
        valueImpl = (DoubleValueImpl) vm.mirrorOf((double)0);
      } else if (variableType == BasicType.T_BYTE) {
        valueImpl = (ByteValueImpl) vm.mirrorOf((byte)0);
      } else if (variableType == BasicType.T_SHORT) {
        valueImpl = (ShortValueImpl) vm.mirrorOf((short)0);
      } else if (variableType == BasicType.T_INT) {
        valueImpl = (IntegerValueImpl) vm.mirrorOf((int)0);
      } else if (variableType == BasicType.T_LONG) {
        valueImpl = (LongValueImpl) vm.mirrorOf((long)0);
      } else if (variableType == BasicType.T_OBJECT) {
        // we may have an [Ljava/lang/Object; - i.e., Object[] with the
        // elements themselves may be arrays because every array is an Object.
        handle = null;
        valueImpl = (ObjectReferenceImpl) vm.objectMirror(heap.newOop(handle));
      } else if (variableType == BasicType.T_ARRAY) {
        handle = null;
        valueImpl = vm.arrayMirror((Array)heap.newOop(handle));
      } else if (variableType == BasicType.T_VOID) {
        valueImpl = new VoidValueImpl(vm);
      } else {
        throw new RuntimeException("Should not read here");
      }
    } else {
      if (variableType == BasicType.T_BOOLEAN) {
        valueImpl = (BooleanValueImpl) vm.mirrorOf(values.booleanAt(ss));
      } else if (variableType == BasicType.T_CHAR) {
        valueImpl = (CharValueImpl) vm.mirrorOf(values.charAt(ss));
      } else if (variableType == BasicType.T_FLOAT) {
        valueImpl = (FloatValueImpl) vm.mirrorOf(values.floatAt(ss));
      } else if (variableType == BasicType.T_DOUBLE) {
        valueImpl = (DoubleValueImpl) vm.mirrorOf(values.doubleAt(ss));
      } else if (variableType == BasicType.T_BYTE) {
        valueImpl = (ByteValueImpl) vm.mirrorOf(values.byteAt(ss));
      } else if (variableType == BasicType.T_SHORT) {
        valueImpl = (ShortValueImpl) vm.mirrorOf(values.shortAt(ss));
      } else if (variableType == BasicType.T_INT) {
        valueImpl = (IntegerValueImpl) vm.mirrorOf(values.intAt(ss));
      } else if (variableType == BasicType.T_LONG) {
        valueImpl = (LongValueImpl) vm.mirrorOf(values.longAt(ss));
      } else if (variableType == BasicType.T_OBJECT) {
        // we may have an [Ljava/lang/Object; - i.e., Object[] with the
        // elements themselves may be arrays because every array is an Object.
        handle = values.oopHandleAt(ss);
        valueImpl = (ObjectReferenceImpl) vm.objectMirror(heap.newOop(handle));
      } else if (variableType == BasicType.T_ARRAY) {
        handle = values.oopHandleAt(ss);
        valueImpl = vm.arrayMirror((Array)heap.newOop(handle));
      } else if (variableType == BasicType.T_VOID) {
        valueImpl = new VoidValueImpl(vm);
      } else {
        throw new RuntimeException("Should not read here");
      }
    }

    return valueImpl;
}
 
Example #30
Source File: StackFrameImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private ValueImpl getSlotValue(StackValueCollection values,
                   BasicType variableType, int ss) {
    ValueImpl valueImpl = null;
    OopHandle handle = null;
    ObjectHeap heap = vm.saObjectHeap();
    if (values.get(ss).getType() == BasicType.getTConflict()) {
      // Dead locals, so just represent them as a zero of the appropriate type
      if (variableType == BasicType.T_BOOLEAN) {
        valueImpl = (BooleanValueImpl) vm.mirrorOf(false);
      } else if (variableType == BasicType.T_CHAR) {
        valueImpl = (CharValueImpl) vm.mirrorOf((char)0);
      } else if (variableType == BasicType.T_FLOAT) {
        valueImpl = (FloatValueImpl) vm.mirrorOf((float)0);
      } else if (variableType == BasicType.T_DOUBLE) {
        valueImpl = (DoubleValueImpl) vm.mirrorOf((double)0);
      } else if (variableType == BasicType.T_BYTE) {
        valueImpl = (ByteValueImpl) vm.mirrorOf((byte)0);
      } else if (variableType == BasicType.T_SHORT) {
        valueImpl = (ShortValueImpl) vm.mirrorOf((short)0);
      } else if (variableType == BasicType.T_INT) {
        valueImpl = (IntegerValueImpl) vm.mirrorOf((int)0);
      } else if (variableType == BasicType.T_LONG) {
        valueImpl = (LongValueImpl) vm.mirrorOf((long)0);
      } else if (variableType == BasicType.T_OBJECT) {
        // we may have an [Ljava/lang/Object; - i.e., Object[] with the
        // elements themselves may be arrays because every array is an Object.
        handle = null;
        valueImpl = (ObjectReferenceImpl) vm.objectMirror(heap.newOop(handle));
      } else if (variableType == BasicType.T_ARRAY) {
        handle = null;
        valueImpl = vm.arrayMirror((Array)heap.newOop(handle));
      } else if (variableType == BasicType.T_VOID) {
        valueImpl = new VoidValueImpl(vm);
      } else {
        throw new RuntimeException("Should not read here");
      }
    } else {
      if (variableType == BasicType.T_BOOLEAN) {
        valueImpl = (BooleanValueImpl) vm.mirrorOf(values.booleanAt(ss));
      } else if (variableType == BasicType.T_CHAR) {
        valueImpl = (CharValueImpl) vm.mirrorOf(values.charAt(ss));
      } else if (variableType == BasicType.T_FLOAT) {
        valueImpl = (FloatValueImpl) vm.mirrorOf(values.floatAt(ss));
      } else if (variableType == BasicType.T_DOUBLE) {
        valueImpl = (DoubleValueImpl) vm.mirrorOf(values.doubleAt(ss));
      } else if (variableType == BasicType.T_BYTE) {
        valueImpl = (ByteValueImpl) vm.mirrorOf(values.byteAt(ss));
      } else if (variableType == BasicType.T_SHORT) {
        valueImpl = (ShortValueImpl) vm.mirrorOf(values.shortAt(ss));
      } else if (variableType == BasicType.T_INT) {
        valueImpl = (IntegerValueImpl) vm.mirrorOf(values.intAt(ss));
      } else if (variableType == BasicType.T_LONG) {
        valueImpl = (LongValueImpl) vm.mirrorOf(values.longAt(ss));
      } else if (variableType == BasicType.T_OBJECT) {
        // we may have an [Ljava/lang/Object; - i.e., Object[] with the
        // elements themselves may be arrays because every array is an Object.
        handle = values.oopHandleAt(ss);
        valueImpl = (ObjectReferenceImpl) vm.objectMirror(heap.newOop(handle));
      } else if (variableType == BasicType.T_ARRAY) {
        handle = values.oopHandleAt(ss);
        valueImpl = vm.arrayMirror((Array)heap.newOop(handle));
      } else if (variableType == BasicType.T_VOID) {
        valueImpl = new VoidValueImpl(vm);
      } else {
        throw new RuntimeException("Should not read here");
      }
    }

    return valueImpl;
}