Bug 877437 - Handle OOM when ion compiling; r=jandem

--HG--
extra : rebase_source : 54d22ae26663fa0fa0fbc1dac0961a799d682dbe