The plunging stock market has wiped out billions of dollars in market capitalization for major public companies across Massachusetts.