  We develop a theory for dislocation-mediated structural transitions in the
vortex lattice which allows for a unified description of phase transitions
between the three phases, the elastic vortex glass, the amorphous vortex glass,
and the vortex liquid, in terms of a free energy functional for the dislocation
density. The origin of a critical endpoint of the melting line at high magnetic
fields, which has been recently observed experimentally, is explained.
