Add asm.js-style setjmp/longjmp handling for wasm
authorHeejin Ahn <aheejin@gmail.com>
Wed, 31 Aug 2016 22:40:34 +0000 (22:40 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Wed, 31 Aug 2016 22:40:34 +0000 (22:40 +0000)
commit23d57103a47c8cd9be764ae85fa2b52217069836
tree303689123cbf8ec82c8d59c4a72278d3464d0849
parent109448ee8140072751d061821cfaea3415f67c02
Add asm.js-style setjmp/longjmp handling for wasm

Summary: This patch adds asm.js-style setjmp/longjmp handling support for WebAssembly. It also uses JavaScript's try and catch mechanism.

Reviewers: jpp, dschuff

Subscribers: jfb, dschuff

Differential Revision: https://reviews.llvm.org/D23928

llvm-svn: 280302
llvm/lib/Target/WebAssembly/LLVMBuild.txt
llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
llvm/test/CodeGen/WebAssembly/lower-em-ehsjlj-options.ll [new file with mode: 0644]
llvm/test/CodeGen/WebAssembly/lower-em-exceptions-whitelist.ll
llvm/test/CodeGen/WebAssembly/lower-em-exceptions.ll
llvm/test/CodeGen/WebAssembly/lower-em-sjlj.ll [new file with mode: 0644]