OSDN Git Service

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)
commit01601df1ce014a86cd83d13d57e45ad3be077803
treed82b59f3ca32a5ab80bdb51c3f10a7198e8b7be5
parent27e101d57715c763a44c6e636385829cd37710de
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280302 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/LLVMBuild.txt
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
test/CodeGen/WebAssembly/lower-em-ehsjlj-options.ll [new file with mode: 0644]
test/CodeGen/WebAssembly/lower-em-exceptions-whitelist.ll
test/CodeGen/WebAssembly/lower-em-exceptions.ll
test/CodeGen/WebAssembly/lower-em-sjlj.ll [new file with mode: 0644]