- ✅ Yes (Core Use Case): Directly needed for
ByteData/ByteBuffer/struct field access on(array i8)(includingmemarg.offsetfolding and typed views) or SIMD vectorization over typed arrays ((array i16),(array i32), etc., including widening loads and sub-vector tail loads/stores that avoid 16B OOB traps). - 🟡 Niche: Useful only for scalar bulk word-copying / surrogate-pair packing across multiple elements (e.g., reading 2×
i16asi32or 2×f32asi64) or multi-element splats on>1Barrays. ⚠️ Redundant: For element-aligned accesses whereaccess_size == elem_size, already covered by standard WasmGCarray.get[_s/_u]/array.set(plus a register cast/extend/splat/lane op), except thatmemarg.offsetfolds a constant offset add.- ❌ No: Slices a wider element into sub-elements (
access_size < elem_size, breaking element-granularity aliasing), or reinterprets unrelated array element
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| { | |
| "columns": [ | |
| "benchmark name", | |
| "-O1", | |
| "-O2", | |
| "-O3", | |
| "-Oz", | |
| "-Os", | |
| "-O3 -flto", | |
| "-Oz -flto", |
This file contains hidden or 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
| /* | |
| * Using https://www.jhauser.us/arithmetic/SoftFloat.html | |
| * and https://github.com/Maratyszcza/FP16 | |
| * compiling with: | |
| * clang++ -std=c++20 -o sf -I ../../source/include/ -I ~/projects/binaryen/third_party/FP16/include/ main.cpp softfloat.a && ./sf | |
| */ | |
| extern "C" { | |
| #include "softfloat.h" | |
| } | |
| #include <cmath> |
This file contains hidden or 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 library = {}; | |
| if (EM.ASYNCIFY) { | |
| library['sleep'] = function () { ... }; | |
| } else { | |
| library['sleep'] = function () { ... }; | |
| } | |
| addToLibrary(library); |
This file contains hidden or 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/other/metadce/test_metadce_files_wasmfs.size b/test/other/metadce/test_metadce_files_wasmfs.size | |
| index 7e63637a7..e8a794252 100644 | |
| --- a/test/other/metadce/test_metadce_files_wasmfs.size | |
| +++ b/test/other/metadce/test_metadce_files_wasmfs.size | |
| @@ -1 +1 @@ | |
| -51626 | |
| +51634 | |
| diff --git a/test/other/metadce/test_metadce_hello_dylink.size b/test/other/metadce/test_metadce_hello_dylink.size | |
| index 5c3d25d34..03aa96dc2 100644 | |
| --- a/test/other/metadce/test_metadce_hello_dylink.size |
This file contains hidden or 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/other/metadce/test_metadce_cxx_ctors1.jssize b/test/other/metadce/test_metadce_cxx_ctors1.jssize | |
| index d4c636143..c0ec1b6fd 100644 | |
| --- a/test/other/metadce/test_metadce_cxx_ctors1.jssize | |
| +++ b/test/other/metadce/test_metadce_cxx_ctors1.jssize | |
| @@ -1 +1 @@ | |
| -26008 | |
| +26031 | |
| diff --git a/test/other/metadce/test_metadce_cxx_ctors2.jssize b/test/other/metadce/test_metadce_cxx_ctors2.jssize | |
| index af118f35f..3a2c12952 100644 | |
| --- a/test/other/metadce/test_metadce_cxx_ctors2.jssize |
I hereby claim:
- I am brendandahl on github.
- I am bdahlmoz (https://keybase.io/bdahlmoz) on keybase.
- I have a public key ASAdMWA4LEj8U65mGa6hBg8l3BOY-j6N3a8e_bxgkvsdOAo
To claim this, I am signing this object:
This file contains hidden or 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
| const domContentLoadedPromise = new Promise(resolve => { | |
| window.addEventListener("DOMContentLoaded", () => { | |
| dump(">>> dialog - DOMContentLoaded event" + window.document.documentURI + "\n"); | |
| resolve(); | |
| }, { capture: true, once: true }); | |
| }); | |
| domContentLoadedPromise.then(() => { | |
| dump(">>> dialog - Promise for domContentLoadedPromise resolved\n"); | |
| }); |
This file contains hidden or 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
| let fs = require("fs"); | |
| var { | |
| Parser | |
| } = require("saxen"); | |
| function structure(filename) { | |
| let contents = fs.readFileSync(filename, "utf8"); | |
| let parser = new Parser(); | |
| let indent = 0; | |
| let out = ""; |
NewerOlder