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
| // (module | |
| // (type (struct (field (mut i32)))) | |
| // (func (export "make") (result structref) | |
| // (struct.new 0 (i32.const 42))) | |
| // (func (export "take_eqref") (param eqref))) | |
| const wasmBytes = new Uint8Array([ | |
| 0x00, 0x61, 0x73, 0x6d, // magic ("\0asm") | |
| 0x01, 0x00, 0x00, 0x00, // version 1 | |
| // Type section: 3 types | |
| 0x01, 0x0d, 0x03, |
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
| commit ed16881d3377840f47046ae551a334613a125b7e | |
| Merge: c7be39053 aa4dcf44b | |
| Author: Thomas Lively <tlively@google.com> | |
| Date: Fri Oct 23 16:33:02 2026 -0700 | |
| Merge remote-tracking branch 'upstream/main' into merge-upstream-2026-10-23 | |
| # Conflicts: | |
| # .github/workflows/ci-interpreter.yml | |
| # README.md |
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/README.md b/README.md | |
| index 4dfd708d8..63b894c4c 100644 | |
| --- a/README.md | |
| +++ b/README.md | |
| @@ -1,9 +1,12 @@ | |
| - | |
| - | |
| - | |
| +[](https://github.com/WebAssembly/stack-switching/actions/workflows/ci-spec.yml) | |
| +[](https://github.com/WebAssembly/stack-switching/actions/workflows/ci-interpreter.yml) |
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
| // Small standalone C++ benchmark for 128-bit addition. | |
| // Supports native __uint128_t, 2x64-bit limb addition with carry, | |
| // compiler builtins (__builtin_add_overflow), and x86 ADC intrinsics. | |
| #include <chrono> | |
| #include <cstdint> | |
| #include <cstring> | |
| #include <iomanip> | |
| #include <iostream> | |
| #include <memory> |
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
| #! /usr/bin/python3 | |
| """Ensure all identifiers match the supported format. | |
| """ | |
| import argparse | |
| import glob | |
| import os | |
| import subprocess | |
| import sys |
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
| #! /usr/bin/python3 | |
| """Translate from the legacy if-else text syntax to the standard syntax | |
| """ | |
| import argparse | |
| import glob | |
| import os | |
| import subprocess | |
| import sys |
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
| <script> | |
| console.log('Starting up'); | |
| var receiverCode = '(' + (() => { | |
| console.log('Hello from receiver'); | |
| self.onmessage = (msg) => { | |
| if (typeof msg.data === 'string') { | |
| console.log('received from main:', msg.data); | |
| } else { |
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
| #include <assert.h> | |
| #include <fcntl.h> | |
| #include <pthread.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <time.h> | |
| #include <unistd.h> |
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
| ;;; Code generated by J2WASM | |
| (module | |
| (global $java.lang.Object.rtt (rtt 0 $java.lang.Object) (rtt.canon $java.lang.Object)) | |
| (global $TestRunner.rtt (rtt 1 $TestRunner) (rtt.sub $TestRunner (global.get $java.lang.Object.rtt))) | |
| (global $java.beans.Beans.rtt (rtt 1 $java.beans.Beans) (rtt.sub $java.beans.Beans (global.get $java.lang.Object.rtt))) | |
| (global $java.io.Writer.rtt (rtt 1 $java.io.Writer) (rtt.sub $java.io.Writer (global.get $java.lang.Object.rtt))) | |
| (global $java.io.BufferedWriter.rtt (rtt 2 $java.io.BufferedWriter) (rtt.sub $java.io.BufferedWriter (global.get $java.io.Writer.rtt))) | |
| (global $java.io.InputStream.rtt (rtt 1 $java.io.InputStream) (rtt.sub $java.io.InputStream (global.get $java.lang.Object.rtt))) | |
| (global $java.io.ByteArrayInputStream.rtt (rtt 2 $java.io.ByteArrayInputStream) (rtt.sub $java.io.ByteArrayInputStream (global.get $java.io.InputStream.rtt))) | |
| (global $java.io.OutputStream.rtt (rtt 1 $java.io.OutputStream) (rtt.sub $java.io.OutputStream (global.get $java.lang.Object.rtt))) |
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
| ;;; Code generated by J2WASM | |
| (module | |
| (global $java.lang.Object.rtt (rtt 0 $java.lang.Object) (rtt.canon $java.lang.Object)) | |
| (global $TestRunner.rtt (rtt 1 $TestRunner) (rtt.sub $TestRunner (global.get $java.lang.Object.rtt))) | |
| (global $java.beans.Beans.rtt (rtt 1 $java.beans.Beans) (rtt.sub $java.beans.Beans (global.get $java.lang.Object.rtt))) | |
| (global $java.io.Writer.rtt (rtt 1 $java.io.Writer) (rtt.sub $java.io.Writer (global.get $java.lang.Object.rtt))) | |
| (global $java.io.BufferedWriter.rtt (rtt 2 $java.io.BufferedWriter) (rtt.sub $java.io.BufferedWriter (global.get $java.io.Writer.rtt))) | |
| (global $java.io.InputStream.rtt (rtt 1 $java.io.InputStream) (rtt.sub $java.io.InputStream (global.get $java.lang.Object.rtt))) | |
| (global $java.io.ByteArrayInputStream.rtt (rtt 2 $java.io.ByteArrayInputStream) (rtt.sub $java.io.ByteArrayInputStream (global.get $java.io.InputStream.rtt))) | |
| (global $java.io.OutputStream.rtt (rtt 1 $java.io.OutputStream) (rtt.sub $java.io.OutputStream (global.get $java.lang.Object.rtt))) |
NewerOlder