Commit Graph
100 Commits
Author SHA1 Message Date
Rerumu 7aefbc3a2e Fix #14 2022-06-25 17:41:03 -04:00
Rerumu a0354816cf Reorder function debug names 2022-06-25 16:32:46 -04:00
Rerumu 975fd9c8b9 Remove test exception for binary-leb128 2022-06-25 05:47:19 -04:00
Rerumu 8ec8b58a38 Fix function typing regression 2022-06-25 15:48:06 -04:00
Rerumu fd1fb13f02 Bump crate versions 2022-06-25 05:34:23 -04:00
Rerumu 2677313941 Fix #15 2022-06-25 05:23:29 -04:00
Rerumu b31e92e3d6 Small style and branching edits 2022-06-25 05:21:21 -04:00
Rerumu 5b61f742f4 Add f32 and f64 distinction 2022-06-25 04:30:06 -04:00
Rerumu 951ee169a2 Style touch ups 2022-06-25 03:52:03 -04:00
Rerumu 0f96d430b6 Minor rename and changes 2022-06-25 03:31:40 -04:00
Rerumu 21ca23b088 Remove old comments 2022-06-25 03:14:58 -04:00
Rerumu 273da80284 Refactor test setup to use wasmparser 2022-06-25 03:08:58 -04:00
Rerumu 40c985e7e2 Refactor Luau codegen to use wasmparser 2022-06-25 03:07:04 -04:00
Rerumu c52170ba6e Refactor LuaJIT codegen to use wasmparser 2022-06-25 02:00:39 -04:00
Rerumu 9f8cf3814b Refactor wasm-ast to use wasmparser 2022-06-24 16:55:38 -04:00
Rerumu 6338e29ebb Bump crate versions 2022-06-23 21:08:14 -04:00
Rerumu c226d14569 Allow valueless constants 2022-06-23 20:59:43 -04:00
Rerumu 3baeb1df59 Add new README 2022-06-23 20:47:23 -04:00
Rerumu d20237e1fe Add new binaries to workflow 2022-06-23 20:53:20 -04:00
Rerumu 223895e617 Restructure and compartmentalize the project 2022-06-23 20:14:04 -04:00
Rerumu 59a5a3219f Reduce severity of assert_trap failures 2022-06-23 16:36:38 -04:00
Rerumu 2c6176d538 Refactor symbol usage into AsSymbol 2022-06-23 16:15:25 -04:00
Rerumu 9db21cc84b Encapsulate nodes 2022-06-23 16:03:13 -04:00
Rerumu b282bdf490 Fix #8, as BrTables have better codegen 2022-06-23 00:27:14 -04:00
Rerumu 8169080779 Unify local and memory finding step 2022-06-22 15:19:38 -04:00
Rerumu 3b0eb59f50 Escape data strings only where needed 2022-06-21 14:27:36 -04:00
Rerumu a4f06afae2 Fix underlying cause of #13 2022-06-20 14:19:15 -04:00
Rerumu 14e5f0e17d Fix #11 2022-06-20 14:10:25 -04:00
Rerumu 8b16df34f8 Merge #10
commit f4b3013c9327aa00ee703848fe8e528fdbedb20a
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Mon Jun 20 06:45:46 2022 -0400

    Add newlines between i64_nXX variants

commit 4e86ad1ca1b09573d83530237cc4586923daa7e3
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Mon Jun 20 06:36:52 2022 -0400

    Rename unused numeric components

commit bc658b8bca03f65b4b3602914f4d841bbb8cb140
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 13:19:58 2022 -0400

    Add i64_nX variants

commit 4a7ab80e92f18b733854cb38e42455f73c869d44
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 13:19:35 2022 -0400

    Add f32 & f64 storage
2022-07-04 04:21:34 -04:00
Rerumu 6116fea2e3 Merge #9
commit 4239e59c679801281cb6412cd9ca20bcfd36c05c
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Mon Jun 20 06:30:23 2022 -0400

    Group num_bit_not local with num_negate

commit cdf4a93fcbfd0cbd2e200d01e594b8a2d1b77580
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Mon Jun 20 06:28:56 2022 -0400

    Localize math.min & math.max

commit 61639bc722299e06a1edf6b15ab1fdccdf99496c
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Mon Jun 20 06:28:12 2022 -0400

    Flip trunc.num branches (< to >=)

commit 02fc78a67181a671ed89c48ad915ff142430e5e5
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Mon Jun 20 06:26:52 2022 -0400

    Localize math.floor & math.sign usages

commit 01448b9dbe6f19c7d475b246ee61efa2670da951
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 14:15:27 2022 -0400

    Add missing bit_band local

commit be50c8a7fec15e5b7b5659264f59b7a044360a62
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 13:55:23 2022 -0400

    Fix naming

commit cf7be1f377362f90355cc6d5a2b707b11069f457
Merge: 2772011 a32a5ba
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 12:43:13 2022 -0400

    Merge pull request #1 from Hexcede/fix-bit_negate

    Localize rust bit_not and fix Numeric.negate

commit a32a5ba3fc4b7c2cdd3a29bcb102b687caaa178c
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 12:35:27 2022 -0400

    Localize rust bit_not and fix Numeric.negate

commit 2772011a1279ac51fb5428a0ddf74fbf65a4b683
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 12:16:21 2022 -0400

    Add runtime.trunc.num

commit b7d79a2de383e0ce30f0ac75ecc262af1b61e9db
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 12:05:17 2022 -0400

    Fix runtime.nearest.num condition & round towards zero instead of with negative bias

commit 2b3713df25e67dd1c2269b6e53bc4adef6b8ffbf
Author: Hexcede <8394472+Hexcede@users.noreply.github.com>
Date:   Sun Jun 19 12:03:50 2022 -0400

    Add runtime.min.num & runtime.max.num

    Wasm min/max returns NaN if either operator is NaN. However, Luau min/max follows different behaviour.
2022-07-04 04:19:43 -04:00
Rerumu a1655e1c0b Bump crate versions 2022-06-19 07:47:00 -04:00
Rerumu 5575256476 Reduce size of data section generation 2022-06-19 05:55:10 -04:00
Rerumu 508ea07aca Rename allocator.init to store.string 2022-06-19 05:38:47 -04:00
Rerumu 2f7d7b564c Improve call stack leak behavior 2022-06-19 05:10:12 -04:00
Rerumu 5f47092a65 Refactor stack leak code 2022-06-19 05:08:11 -04:00
Rerumu bc64734add Finally fix #7 2022-06-18 00:59:07 -04:00
Rerumu cc0920b573 Refactor and fix post call stack 2022-06-17 22:43:09 -04:00
Rerumu 34311bd0fb Allow Builder re-use 2022-06-17 22:11:31 -04:00
Rerumu 2fae09e149 Fix minor order peeve 2022-06-17 22:05:57 -04:00
Rerumu f52033036a Re-classify MemoryGrow as a Statement 2022-06-17 21:56:52 -04:00
Rerumu 0e23793d72 Add accessors for various stack operations 2022-06-17 21:56:49 -04:00
Rerumu b3c931a38e Add comprehensive stack use analysis 2022-06-17 21:55:08 -04:00
Rerumu 684f2d9ad7 Fix LuaJIT assertion code mistake 2022-06-17 21:15:24 -04:00
Rerumu ce49e40d26 Fix branching and branch state 2022-06-16 20:13:14 -04:00
Rerumu 0c87c61e01 Add some missing memory functions 2022-06-16 20:13:14 -04:00
Rerumu 99e74e7ea1 Fix software integer instantiation 2022-06-16 20:12:26 -04:00
Rerumu 1939fbb248 Fix zero local count 2022-06-16 20:12:26 -04:00
Rerumu 9ca2c60021 Fix function name translation offset 2022-06-16 20:12:26 -04:00
Rerumu e956b3a790 Allow non-observer test cases to run 2022-06-16 20:12:26 -04:00
Rerumu 47d755a570 Set up test code per version 2022-06-16 20:12:26 -04:00
Rerumu 13d719ac06 Add spectest environment 2022-06-16 07:22:31 -04:00
Rerumu fc105553db Omit generating some boilerplate 2022-06-16 06:33:08 -04:00
Rerumu c8e3777f1c Add back skipped float test cases 2022-06-16 06:33:08 -04:00
Rerumu a7f30b8157 Fix stack size heuristic overshooting 2022-06-16 06:33:03 -04:00
Rerumu c756b4bc6d Skip Wat variants for assert_trap 2022-06-16 06:33:03 -04:00
Rerumu 8a92d8f9b6 Fix test module linking 2022-06-16 06:33:03 -04:00
Rerumu 9482438360 Add proper sign extension for integers 2022-06-16 06:33:03 -04:00
Rerumu d654186234 Add population operations to runtime 2022-06-16 06:33:03 -04:00
Rerumu c5f7e386c2 Fix signed remainder assumption 2022-06-16 06:33:03 -04:00
Rerumu 860fef391f Fix float writing 2022-06-16 06:33:03 -04:00
Rerumu 2db51b9b00 Fix realloc failing on no-op 2022-06-16 06:33:03 -04:00
Rerumu 9a2b52fde5 Fix memory size leaking behavior 2022-06-16 06:33:03 -04:00
Rerumu 5037ab1ff8 Fix i32 multiplication 2022-06-16 06:33:03 -04:00
Rerumu bc6ac45059 Fix copysign 2022-06-16 06:33:03 -04:00
Rerumu e6f1f7469f Fix test NaN sign 2022-06-16 06:33:03 -04:00
Rerumu 46c1dcd21f Make test number comparisons real fuzzy 2022-06-16 06:32:55 -04:00
Rerumu 65cd89c6d7 Fix test number generation 2022-06-15 19:10:06 -04:00
Rerumu 987a19ed8e Make clippy happy 2022-06-15 02:46:55 -04:00
Rerumu 08004a9782 Remove unneeded top level result handling 2022-06-15 02:44:28 -04:00
Rerumu 941bb4842b Fix branching out of loops and improve tracking 2022-06-15 02:34:02 -04:00
Rerumu a6cf4fdf07 Fix alignment when branching 2022-06-14 00:23:50 -04:00
Rerumu 20b888bfa0 Compartmentalize tests 2022-06-12 19:55:42 -04:00
Rerumu e9c48f6cec Remove unused label variant 2022-06-12 04:39:19 -04:00
Rerumu c15a4b3ec7 Fix unreachable code heuristic for conditionals 2022-06-12 04:38:28 -04:00
Rerumu 735dfc7d96 Fix start_else stack size heuristic 2022-06-12 04:38:03 -04:00
Rerumu ce9421d549 Fix If emit 2022-06-12 04:27:16 -04:00
Rerumu a379fb2e91 Fix BrIf reachability and simplify block adds 2022-06-12 04:27:16 -04:00
Rerumu c4c0bf8deb Fix temporary alignment 2022-06-12 04:27:16 -04:00
Rerumu 6cdf793818 Fix else not pushing argument copy 2022-06-12 04:27:16 -04:00
Rerumu 954f133557 Move around start_else 2022-06-12 04:27:16 -04:00
Rerumu 32031c8c2c Refactor BrIf behavior 2022-06-12 04:27:16 -04:00
Rerumu 183db977f3 Refactor Return behavior 2022-06-12 04:27:10 -04:00
Rerumu b8e40fe740 Rename Intermediate to FuncData 2022-06-10 23:35:25 -04:00
Rerumu 78aa47cdd6 Fix missing visit_statement call 2022-06-10 23:35:25 -04:00
Rerumu 2df59b2d82 Refactor Terminator from Statement 2022-06-10 23:35:20 -04:00
Rerumu 472f37d059 Add new Builder backend 2022-06-10 06:13:28 -04:00
Rerumu 863319d1bc Fix assertion result count 2022-06-10 04:20:57 -04:00
Rerumu e0347c505e Remove verbose Else wrapper 2022-06-10 03:21:16 -04:00
Rerumu f85235738e Fix severe lapse in naming scheme judgement 2022-06-09 01:05:53 -04:00
Rerumu dee02d24ad Adjust test temporary paths 2022-06-04 00:17:14 -04:00
Rerumu bbf99a7e62 Rename test stuff 2022-06-03 22:57:33 -04:00
Rerumu 7577135976 Add support for basic assertions 2022-05-26 21:00:52 -04:00
Rerumu 08d2108a21 Fix bit localizing 2022-05-26 21:00:29 -04:00
Rerumu 8d4da9547c Fix initializing memory off by 1 2022-05-26 19:19:16 -04:00
Rerumu a261e3faa1 Add WIP assertion generation 2022-05-26 18:32:44 -04:00
Rerumu ca57cf915a Add shortcut translation API 2022-05-21 21:57:21 -04:00
Rerumu f02070a1b3 Add support for anonymous translation 2022-05-21 19:52:25 -04:00
Rerumu 830727d8d4 Add copysign and nearest to runtimes 2022-05-21 15:51:31 -04:00
Rerumu 8d671b99e4 Expand runtimes a bit more 2022-05-21 04:18:29 -04:00
Rerumu ce54d834a5 Add shortcuts for native operations 2022-05-21 04:11:04 -04:00