Large fish-tail shaped ornaments (shibi) on the east and west ends of the topmost ridge of the roof (replaced during the Kamakura Period, 1185-1333). These were thought to protect the building from fire.
Image Source
The Trustees of Columbia University, Media Center for Art History, Department of Art History and Archaeology