Implement generateDebugTrapHandler().

Partially fixes debug/Frame-onPop-star-generators-03.js,
except that it crashes after the callVM within this function,
and x64 never hits this codepath at all!