primitive dinosaurs were small bipedal predators that continued to evolve after two more extinction events , which also spared pterosaurs ( flying dinosaurs ) crocodylomorphs , turtles , and some small shrew-like mammals restricted by size and niches .