OSDN Git Service

[WebAssembly] Add asm.js-style setjmp/longjmp handling for wasm (reland r280302)
authorHeejin Ahn <aheejin@gmail.com>
Thu, 1 Sep 2016 21:05:15 +0000 (21:05 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Thu, 1 Sep 2016 21:05:15 +0000 (21:05 +0000)
commitd5f9cd91f56a2b634a839e5f1737d3bc00f1f781
tree4a3e2ac0ed6c3969f7ec252ed1c1e1ba71aa8c85
parent1879d5cc548bd3d992c4a0bfa9f3b201ef772650
[WebAssembly] Add asm.js-style setjmp/longjmp handling for wasm (reland r280302)

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/D24121

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280415 91177308-0d34-0410-b5e6-96231b3b80d8
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]