Samsung Electronics’ shares surged after record earnings and rising demand for AI memory chips pushed the South Korean tech giant beyond the $1 trillion market value milestone.