This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(type (shared (array i8))) | |
(type (sub final (shared (array i8)))) | |
(rec | |
(type (sub final (shared (array i8)))) | |
) | |
(global (ref 0) (array.new_default 1 (i32.const 1))) | |
(global (ref 1) (array.new_default 2 (i32.const 1))) | |
(global (ref 2) (array.new_default 0 (i32.const 1))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ok.wat 2024-05-15 09:49:22.761673972 -0700 | |
+++ bad.wat 2024-05-15 09:49:52.181996721 -0700 | |
@@ -300838,43 +300838,41 @@ | |
(then | |
(local.set $12 | |
(call $Zone._enter | |
(local.get $5) | |
) | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <memory.h> | |
#include <pthread.h> | |
#include <emscripten.h> | |
#include <emscripten/threading.h> | |
#include <assert.h> | |
#if !defined(__EMSCRIPTEN_PTHREADS__) || __EMSCRIPTEN_PTHREADS__ != 1 | |
#error __EMSCRIPTEN_PTHREADS__ should have been defined to be equal to 1 when building with pthreads support enabled! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b; | |
b ||= typeof Module != 'undefined' ? Module : {}; | |
var f = "object" == typeof window, g = "function" == typeof importScripts, | |
h = "object" == typeof process && "object" == typeof process.versions && | |
"string" == typeof process.versions.node, | |
k = Object.assign({}, b), l = (a, c) => { throw c; }, m = ""; | |
function n() { | |
var a = p; | |
return b.locateFile ? b.locateFile(a, m) : m + a | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
id: 'Block', | |
fields: [ | |
{ | |
form: 'CHILD_VECTOR', | |
name: 'list', | |
}, | |
{ | |
form: 'SCOPE_NAME_DEF', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index def330b27..01ac747b9 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -336,12 +336,12 @@ if(EMSCRIPTEN) | |
add_link_flag("-sALLOW_MEMORY_GROWTH") | |
add_link_flag("-sSTACK_SIZE=5MB") | |
- if(EMSCRIPTEN_ENABLE_WASM_EH) | |
- add_compile_flag("-fwasm-exceptions") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Auto-generated C API | |
// Block | |
BINARYEN_API BinaryenExpressionRef BinaryenBlockGetListAt(BinaryenExpressionRef expr, BinaryenIndex index); | |
// If | |
BINARYEN_API BinaryenExpressionRef BinaryenIfGetIfTrue(BinaryenExpressionRef expr); | |
BINARYEN_API BinaryenExpressionRef BinaryenIfGetCondition(BinaryenExpressionRef expr); | |
// Loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <emscripten.h> | |
extern void launch_missiles(); | |
extern void foo_checkin(); | |
extern void bar_checkin(); | |
void (*mutable_global)() = &launch_missiles; | |
void benign() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a.out.js 2024-01-31 09:42:57.311326787 -0800 | |
+++ b.out.js 2024-01-31 09:43:14.131501278 -0800 | |
@@ -1,40 +1,38 @@ | |
var Module = typeof Module != "undefined" ? Module : {}; | |
var moduleOverrides = Object.assign({}, Module); | |
var arguments_ = []; | |
var thisProgram = "./this.program"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/lit/passes/once-reduction.wast b/test/lit/passes/once-reduction.wast | |
index dd15da5da..7feae8857 100644 | |
--- a/test/lit/passes/once-reduction.wast | |
+++ b/test/lit/passes/once-reduction.wast | |
@@ -1349,311 +1349,311 @@ | |
) | |
;; Corner case: Exported mutable global. We cannot optimize it, since the | |
;; outside may read and write it. | |
(module |
NewerOlder