instanceOfClass(refr, (VmClassType) resolvedType, tmpr, null,
instanceOfClass(refr, (VmClassType<?>) resolvedType, tmpr, null,
	public final void visit_checkcast(VmConstClass classRef) {		// Resolve classRef		classRef.resolve(loader);		final VmType<?> resolvedType = classRef.getResolvedVmClass();		if (resolvedType.isInterface() || resolvedType.isArray()) {			// ClassRef is an interface or array, do the slow test			// Pre-claim ECX			L1AHelper.requestRegister(eContext, helper.AAX);			// check that top item is a reference			final RefItem ref = vstack.popRef();			// Load the ref			ref.load(eContext);			final GPR refr = ref.getRegister();			final GPR classr = helper.AAX;			final GPR cntr = (GPR) L1AHelper.requestRegister(eContext,					JvmType.INT, false);			final GPR tmpr = (GPR) L1AHelper.requestRegister(eContext,					JvmType.REFERENCE, false);			// Resolve the class			writeResolveAndLoadClassToReg(classRef, classr);			helper.writeClassInitialize(curInstrLabel, classr, resolvedType);			final Label okLabel = new Label(this.curInstrLabel + "cc-ok");			/* Is objectref null? */			os.writeTEST(refr, refr);			os.writeJCC(okLabel, X86Constants.JZ);			/* Is instanceof? */			instanceOf(refr, classr, tmpr, cntr, okLabel, true);			/* Not instanceof */			// Release temp registers here, so invokeJavaMethod can use it			L1AHelper.releaseRegister(eContext, cntr);			L1AHelper.releaseRegister(eContext, classr);			L1AHelper.releaseRegister(eContext, tmpr);			// Call classCastFailed			os.writePUSH(refr);			invokeJavaMethod(context.getClassCastFailedMethod());			/* Normal exit */			os.setObjectRef(okLabel);			// Leave ref on stack			vstack.push(ref);		} else {			// classRef is a class, do the fast test			// Pre-claim EAX/RAX			L1AHelper.requestRegister(eContext, helper.AAX);			// check that top item is a reference			final RefItem ref = vstack.popRef();			// Load the ref			ref.load(eContext);			final GPR refr = ref.getRegister();			final GPR tmpr = (GPR) L1AHelper.requestRegister(eContext,					JvmType.REFERENCE, false);			final Label okLabel = new Label(this.curInstrLabel + "cc-ok");			// Is objectref null?			os.writeTEST(refr, refr);			os.writeJCC(okLabel, X86Constants.JZ);			// Is instanceof?			instanceOfClass(refr, (VmClassType) resolvedType, tmpr, null,					okLabel, true);			// Not instanceof			// Release temp registers here, so invokeJavaMethod can use it			L1AHelper.releaseRegister(eContext, helper.AAX);			L1AHelper.releaseRegister(eContext, tmpr);			// Call SoftByteCodes.systemException			os.writePUSH(refr);			invokeJavaMethod(context.getClassCastFailedMethod());			/* Normal exit */			os.setObjectRef(okLabel);			// Leave ref on stack			vstack.push(ref);		}	}