Commit Graph

  • e20eee10f5 Add initial support for async functions in witx Alex Crichton 2021-09-21 08:28:01 -07:00
  • e096c4e338 Merge pull request #77 from alexcrichton/error-on-import Alex Crichton 2021-09-24 10:11:20 -05:00
  • d880cb0e98 Improve spidermonkey.wasm's error message for importing nonexistent modules Alex Crichton 2021-09-24 07:10:12 -07:00
  • 7c6230f2b6 Merge pull request #75 from alexcrichton/move-smw-tests Alex Crichton 2021-09-23 16:17:40 -05:00
  • ed3f003947 Move spidermonkey tests to tests/runtime/* Alex Crichton 2021-09-23 13:51:38 -07:00
  • aa00fa06ec Merge pull request #74 from alexcrichton/validate-with-test-helpers Alex Crichton 2021-09-23 13:42:10 -05:00
  • 58d5f4b3e7 Move spidermonkey-wasm tests to test/codegen/* for validation Alex Crichton 2021-09-23 11:01:18 -07:00
  • 881659bf11 Merge pull request #72 from alexcrichton/split-tests Alex Crichton 2021-09-23 13:10:52 -05:00
  • 38baa7b6be Merge pull request #73 from alexcrichton/fix-typo Alex Crichton 2021-09-23 13:10:43 -05:00
  • 7fbf513812 Fixup merge conflicts Alex Crichton 2021-09-23 10:49:38 -07:00
  • 90635a4cc8 Ignore js tests on Windows Alex Crichton 2021-09-23 08:13:20 -07:00
  • a44879fc36 Try not passing any options to node wasi Alex Crichton 2021-09-23 07:19:39 -07:00
  • 1754187450 Don't destroy mypy cache between runs Alex Crichton 2021-09-23 07:13:50 -07:00
  • af0bd86e6e Split mypy caches to fix racy tests Alex Crichton 2021-09-23 07:12:39 -07:00
  • d5331adfbf Fix racy tests Alex Crichton 2021-09-23 07:06:49 -07:00
  • a4830ebae4 Update testing README Alex Crichton 2021-09-22 15:22:21 -07:00
  • ff74427fec Move invalid tests to their own tests Alex Crichton 2021-09-22 15:13:19 -07:00
  • 7b81c8ccb1 Move 'flavorful' tests to their own test Alex Crichton 2021-09-22 14:46:06 -07:00
  • 9d6c7dd8d1 Split buffers into their own tests Alex Crichton 2021-09-22 14:36:41 -07:00
  • c4a8ca4ec9 Move handles to their own test Alex Crichton 2021-09-22 14:18:10 -07:00
  • 61b20c5e3b Extract lists into a standalone test Alex Crichton 2021-09-22 13:57:31 -07:00
  • 23f0591798 Extract out a variants test Alex Crichton 2021-09-22 13:40:56 -07:00
  • fcc8eae4b5 Split records into their own test Alex Crichton 2021-09-22 13:24:39 -07:00
  • 952d81f07b Create a numbers test for moving numbers around Alex Crichton 2021-09-22 12:44:27 -07:00
  • 2457fed7b6 Start to reorganize tests Alex Crichton 2021-09-22 10:35:47 -07:00
  • a096d9d339 Move codegen tests to a codegen dir Alex Crichton 2021-09-22 07:30:00 -07:00
  • c63ad299cc Fix typo in profile settings Alex Crichton 2021-09-23 11:07:22 -07:00
  • 9a3b2674a0 Merge pull request #71 from fitzgen/introduce-witx-bindgen-spidermonkey Alex Crichton 2021-09-23 13:06:48 -05:00
  • 79de4b57f2 Always build cranelift-codegen with optimizations and without debug assertions Nick Fitzgerald 2021-09-23 09:53:53 -07:00
  • 3d070e627b Support the SpiderMonkey backend in the main CLI Nick Fitzgerald 2021-09-22 16:47:30 -07:00
  • 12a553405b Expand the Generator trait so it can abstract the SpiderMonkey backend Nick Fitzgerald 2021-09-22 13:32:54 -07:00
  • d18acc5ae8 Add a TODO for typed arrays and canonical list representation Nick Fitzgerald 2021-09-21 16:09:07 -07:00
  • cdd0b73ba2 Use a helper function to convert WasmType to wasm_encoder::ValType Nick Fitzgerald 2021-09-21 16:08:03 -07:00
  • e15f23bbd9 Factor out MemArg construction to a helper function Nick Fitzgerald 2021-09-21 16:02:53 -07:00
  • 8416eee047 Export SMW_malloc so that we don't need to handle nullptr in Wasm Nick Fitzgerald 2021-09-21 15:54:50 -07:00
  • 831bd7d759 Add a README.md for the spidermonkey-wasm subdirectory Nick Fitzgerald 2021-09-21 14:53:04 -07:00
  • 28980adb6a Move the spidermonkey-wasm directory into crates/gen-spidermonkey Nick Fitzgerald 2021-09-21 14:34:16 -07:00
  • c710b73088 Move *.wasm ignore to top-level .gitignore Nick Fitzgerald 2021-09-21 14:16:49 -07:00
  • 13f6bcf0a5 Fix minimum memory page size calculation Nick Fitzgerald 2021-09-21 14:14:55 -07:00
  • eff1986102 Remove unnecessary fn main in tests Nick Fitzgerald 2021-09-21 14:06:36 -07:00
  • 6499e6ccf3 Introduce a WITX bindings generator for JS via SpiderMonkey Nick Fitzgerald 2021-09-20 16:37:38 -07:00
  • 7fbffdd082 Update wasmtime to 0.30.0 (#70) Alex Crichton 2021-09-20 11:58:53 -05:00
  • 2df2ff28db Fix installation instructions (#68) bjorn3 2021-09-09 16:31:37 +02:00
  • aeec84a351 Add the element type to Instruction::IterElem (#66) Nick Fitzgerald 2021-08-30 13:36:33 -07:00
  • fb9ac9eb71 Update wasmtime to 0.29 (#65) Nick Fitzgerald 2021-08-18 17:15:53 -07:00
  • b42b4e4c5b wasmtime: Fix overlapping trait impls on tuples (#64) Alex Crichton 2021-08-16 10:51:32 -05:00
  • f16233e390 Add #ifdef to C headers so they can be directly reused in CPP files (#62) Radu M 2021-08-11 18:04:39 -07:00
  • ab31638ada Make generated export Wasmtime bindings module public (#61) Radu M 2021-08-11 13:44:20 -07:00
  • a67ab5de8f Merge pull request #60 from peterhuene/fix-wasmlink Peter Huene 2021-08-09 15:13:20 -07:00
  • 9970a1c584 Also export memories from the linked module. Peter Huene 2021-08-09 14:20:10 -07:00
  • 2c9d0c6ab2 Remove requirement that the module to link exports _start. Peter Huene 2021-08-09 11:04:34 -07:00
  • 6c963515e2 Merge pull request #58 from peterhuene/wasmlink-api Peter Huene 2021-08-09 11:00:15 -07:00
  • 0ed6562f67 Implement support for multiple exported interfaces in wasmlink. Peter Huene 2021-08-06 19:13:42 -07:00
  • ed2f07c0d7 Initial commit of a wasmtime-py bindings generator (#55) Alex Crichton 2021-07-27 11:39:29 -05:00
  • 0e087ecc73 Merge pull request #52 from peterhuene/fix-adapter-nesting Peter Huene 2021-07-22 15:32:27 -07:00
  • 4b9f7b193e Update test baselines with new exports. Peter Huene 2021-07-22 14:59:08 -07:00
  • 96f380eff9 Add missing exports to adapted modules. Peter Huene 2021-07-22 14:24:27 -07:00
  • fa8e0b5a38 Match JS conventions for methods (#50) Alex Crichton 2021-07-21 14:50:03 -05:00
  • 3c449b571f Remove unnecessary witx dep from gen-core crate (#49) Alex Crichton 2021-07-21 14:22:54 -05:00
  • d5ca739ccc Use object-like and method-aware syntax in Rust-wasm & JS (#48) Alex Crichton 2021-07-21 14:15:09 -05:00
  • 74363fcec9 Rewrite host.witx in the new syntax (#46) Alex Crichton 2021-07-20 18:10:53 -05:00
  • a2fbfa8bcb Translate wasm.witx to new syntax (#45) Alex Crichton 2021-07-20 13:39:29 -05:00
  • 8af87e3637 Add a markdown code generator (#44) Alex Crichton 2021-07-15 14:29:08 -05:00
  • a623bd833c Fix send/sync bounds in imports (#42) Alex Crichton 2021-07-14 14:02:01 -05:00
  • 7752955665 Make fields of the Tables structure pub(crate). (#40) Peter Huene 2021-07-14 08:41:47 -07:00
  • 7d560248ed Merge pull request #39 from peterhuene/wasmlink-tests Peter Huene 2021-07-13 16:05:18 -07:00
  • 3dd3947f3b Fix resource ids in the resource file test. Peter Huene 2021-07-13 15:25:44 -07:00
  • e94251693c Make it easier to see where baseline diffs are. Peter Huene 2021-07-13 14:25:46 -07:00
  • b3ac8b8f1d Normalize line endings for Windows. Peter Huene 2021-07-13 13:23:27 -07:00
  • 345e1ce2fa Add file-based tests to wasmlink. Peter Huene 2021-07-13 12:02:17 -07:00
  • f326cfafac Flag self as a reserved word for Rust (#37) Alex Crichton 2021-07-13 12:56:06 -05:00
  • 24ae0d43bb Fix issues with generators and conventions (#36) Alex Crichton 2021-07-13 12:34:37 -05:00
  • 0282e2cd54 Add a C bindings generator (#35) Alex Crichton 2021-07-13 11:10:46 -05:00
  • 5a1aa9a4b6 Merge pull request #32 from peterhuene/wasmlink-resources Peter Huene 2021-07-12 12:49:08 -07:00
  • 061a07eea6 Revert changes to resource.witx. Peter Huene 2021-07-12 12:30:06 -07:00
  • 242af2b24a Add wasmlink runtime source to format check. Peter Huene 2021-07-12 12:15:04 -07:00
  • d2c2846f50 Add a test for an invalid handle value. Peter Huene 2021-07-12 11:58:36 -07:00
  • 9c20368a39 Put an explicit invalid_handle_trap in stack traces. Peter Huene 2021-07-12 11:45:40 -07:00
  • 8db580132c Remove Mutex and lazy_static from the wasmlink runtime. Peter Huene 2021-07-12 11:31:49 -07:00
  • 4dec52da25 Add wasm32-unknown-unknown target in CI. Peter Huene 2021-07-12 11:21:21 -07:00
  • 7c2423f09d Use usize for resource type id parameter in resource functions. Peter Huene 2021-07-12 11:07:45 -07:00
  • 3f5b230917 Ensure trait drop function is called for resource test module. Peter Huene 2021-07-12 11:04:21 -07:00
  • 0d82527553 Disable publishing for wasmlink test modules. Peter Huene 2021-07-12 10:59:54 -07:00
  • 4a4ac0dee5 Copy test module witx files local to the implementation. Peter Huene 2021-07-12 10:55:54 -07:00
  • 824774065b Target the wasmlink runtime to wasm32-unknown-unknown. Peter Huene 2021-07-12 10:23:02 -07:00
  • 4ccfb279e3 Implement support for resources in wasmlink. Peter Huene 2021-07-02 23:41:45 -07:00
  • fa0279dc94 Add a test case for linking with a resource. Peter Huene 2021-07-02 13:20:51 -07:00
  • daf3763d51 Fix some Windows CI issues (#29) Alex Crichton 2021-07-01 10:20:25 -05:00
  • a068bb8466 Disable fail fast for CI. (#28) Peter Huene 2021-06-30 14:17:57 -07:00
  • 6c1d8e351c Reimplement exported resources (#27) Alex Crichton 2021-06-30 15:13:41 -05:00
  • 21ffb080cf Merge pull request #26 from peterhuene/merge-wasmlink Peter Huene 2021-06-30 12:12:29 -07:00
  • a1acc712ff Fix witx2 tests on Windows. Peter Huene 2021-06-30 11:45:07 -07:00
  • 10ce17103b Fix npx invocation on Windows. Peter Huene 2021-06-30 11:18:31 -07:00
  • 1bf1af683d Use raw literals for include_str!. Peter Huene 2021-06-30 10:33:41 -07:00
  • bc9cd1117c Fix wasmlink tests. Peter Huene 2021-06-29 23:50:21 -07:00
  • a573435363 Cleanup of wasmlink test modules. Peter Huene 2021-06-29 23:20:34 -07:00
  • eda6954a14 Merge wasmlink's CI into witx-bindgen. Peter Huene 2021-06-29 22:28:26 -07:00
  • 1a93b40b71 Get wasmlink building again. Peter Huene 2021-06-29 22:15:06 -07:00
  • 38de1b7e46 Merge 'peterhuene/wasmlink/main' into main Peter Huene 2021-06-29 21:37:20 -07:00
  • 9e387cd35b Merge pull request #16 from peterhuene/update-lists-test Peter Huene 2021-06-29 15:11:11 -07:00