Commit Graph
100 Commits
Author SHA1 Message Date
Rerumu 3853e06efa Fix conversion operations and implement saturation
Namie fixie
2022-07-08 12:46:23 -04:00
Rerumu 50b5680bef Add saturation operations 2022-07-08 12:46:23 -04:00
Rerumu 85aeca9d9f Fix large integer initialization 2022-07-08 12:41:45 -04:00
Rerumu fb684eff8f Merge similar unhinting operations 2022-07-08 12:41:45 -04:00
Rerumu efec6203b0 Fix inconsistencies
Addendum to truncation rename

Rename constants for consistency
2022-07-08 12:41:45 -04:00
Rerumu bdfede0b93 Remove entries for tables with no elements 2022-07-07 20:17:40 -04:00
Rerumu cdefb2f06a Remove unneeded Luau branch gadgets
Fixiee
2022-07-07 20:17:40 -04:00
Rerumu 49bc994353 Elide block labels when not referenced 2022-07-07 19:30:41 -04:00
Rerumu 6a8a8c1c00 Fix stack capacity inheritance 2022-07-05 16:44:05 -04:00
Rerumu e58bae6d29 Upgrade to latest test suite 2022-07-02 06:33:48 -04:00
Rerumu 028a8ada08 Bump crate versions 2022-07-02 05:40:11 -04:00
Rerumu 567c9803a6 Update Luau README entry 2022-07-02 05:38:08 -04:00
Rerumu 0cacb0b996 Add i64 bit rotation 2022-07-02 05:29:46 -04:00
Rerumu 9eb44f0ed8 Fix i64 bit shifting 2022-07-02 05:15:15 -04:00
Rerumu 971ac382a5 Add i64 remainder operation 2022-07-02 05:04:39 -04:00
Rerumu d351920a51 Clean up vector integers 2022-07-02 04:20:55 -04:00
Rerumu 47079b7758 Clean up table integers 2022-07-02 03:30:36 -04:00
Rerumu d74124815b Add vector feature to Luau 2022-07-02 02:19:26 -04:00
Rerumu 071b0877cf Replace integer division algorithm 2022-07-02 02:03:33 -04:00
Rerumu 577fbf5926 Remove unneeded multiplication checks 2022-07-02 01:59:38 -04:00
Rerumu bdb4420292 Rename Numeric export to Integer 2022-07-01 15:07:11 -04:00
Rerumu 627927d366 Rename stuff in Numeric for clarity 2022-07-01 14:06:17 -04:00
Rerumu a0596f45e3 Close #16 2022-06-30 17:49:37 -04:00
Rerumu e5fb05b706 Remove some more proxies 2022-06-30 14:09:36 -04:00
Rerumu d775739581 Remove proxy function and multiple return 2022-06-30 01:47:35 -04:00
Rerumu 6e0debe287 Fix i64 sign extension for i32 2022-06-29 23:53:02 -04:00
Rerumu 76cb3b36be Add i64 sign extension for i8 and i16 2022-06-29 23:55:08 -04:00
Rerumu 64ae35c658 Add i64 bit counting 2022-06-29 22:08:34 -04:00
Rerumu ecc0cad494 Inline bit set constants 2022-06-29 23:06:37 -04:00
Rerumu 92b692160d Remove unnecessary bit_and call 2022-06-28 18:40:32 -04:00
Rerumu 5c2209fcf0 Add Vector3 support for Luau i64 2022-06-28 16:58:01 -04:00
Rerumu 04d1840d2d Fix nearest f32 and f64 again 2022-06-28 02:03:29 -04:00
Rerumu e6ebb222bf Add truncation for f32 and f64 2022-06-27 20:24:01 -04:00
Rerumu 5463b48e63 Add min and max for f32 and f64 2022-06-27 20:18:55 -04:00
Rerumu b8362d9e66 Add i32 sign extension 2022-06-27 19:57:31 -04:00
Rerumu 2363811773 Reorder and rename for consistency 2022-06-27 19:55:25 -04:00
Rerumu 64ddfd03f9 Remove empty array declarations 2022-06-26 04:18:15 -04:00
Rerumu 901b062a41 Bump test dependencies 2022-06-26 03:50:11 -04:00
Rerumu 201f0b286f Expand inlineable runtime functions 2022-06-26 03:40:28 -04:00
Rerumu 75582f40bf Reorganize runtimes 2022-06-26 03:18:53 -04:00
Rerumu 76eb363d35 Fix nearest f32 and f64 2022-06-26 03:18:09 -04:00
Rerumu 22d447395b Fix i64 division on zero shortcut 2022-06-26 02:41:36 -04:00
Rerumu ec20ac5482 Fix i64 sign check 2022-06-26 02:28:14 -04:00
Rerumu 5d4aa97cd5 Fix signed i32 remainder 2022-06-26 01:51:52 -04:00
Rerumu 62f41eac17 Fix i32 bit shifting 2022-06-26 01:51:37 -04:00
Rerumu c3d8f4a357 Fix i64 bit shifting 2022-06-26 01:33:52 -04:00
Rerumu 4e10ed9d93 Fix signed i64 memory 2022-06-26 01:28:16 -04:00
Rerumu 34dbd6b018 Rename variables for consistency 2022-06-26 01:22:14 -04:00
Rerumu 2ad52aa6b1 Fix i64 printing in tests 2022-06-26 01:00:07 -04:00
Rerumu c462a4472f Make use of bit32 more consistent 2022-06-26 00:32:42 -04:00
Rerumu 43aba1185a Fix i32 multiplication 2022-06-26 00:28:03 -04:00
Rerumu f5bd86ccef Specify pack order when needed 2022-06-25 22:55:11 -04:00
Rerumu c19430548b Localize truncation 2022-06-25 22:52:22 -04:00
Rerumu efc5c9354f Fix copysign 2022-06-25 22:51:45 -04:00
Rerumu 27c05550e4 Fix i64 generation for globals and elements 2022-06-25 22:19:26 -04:00
Rerumu 00cbe2df6c Fix out of memory return 2022-06-25 21:52:06 -04:00
Rerumu 5bdbb9c396 Add missing Luau memory operations 2022-06-25 21:43:41 -04:00
Rerumu 96482310c5 Add memory traps in tests 2022-06-25 20:34:07 -04:00
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