public void resetNumLocals() {
        if (localsTypes != null) {
            int nl = localsTypes.length;
            while (nl > 0 && localsTypes[nl - 1] == TypeTag.TOP) {
                if (nl > 1) {
                    TypeData td = localsTypes[nl - 2];
                    if (td == TypeTag.LONG || td == TypeTag.DOUBLE)
                        break;
                }

                --nl;
            }

            numLocals = nl;
        }
    }