Major share indexes end the year sharply higher despite a year of global financial uncertainty.