public int stackHeight() {
		if (isVoid()) {
			return 0;
		}

		if (isWide()) {
			return 2;
		}

		if (paramTypes != null) {
			int numParams = 0;

			// Count longs and doubles as 2.
			for (int i = 0; i < paramTypes.length; i++) {
				if (paramTypes[i].isWide()) {
					numParams++;
				}
				numParams++;
			}

			return numParams;
		}

		return 1;
	}