22 Commits

Author SHA1 Message Date
Rerumu
9db21cc84b Encapsulate nodes 2022-06-23 16:03:13 -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
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
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
bc64734add Finally fix #7 2022-06-18 00:59:07 -04:00
Rerumu
34311bd0fb Allow Builder re-use 2022-06-17 22:11:31 -04:00
Rerumu
9ca2c60021 Fix function name translation offset 2022-06-16 20:12:26 -04:00
Rerumu
b8e40fe740 Rename Intermediate to FuncData 2022-06-10 23:35:25 -04:00
Rerumu
472f37d059 Add new Builder backend 2022-06-10 06:13:28 -04:00
Rerumu
08d2108a21 Fix bit localizing 2022-05-26 21:00:29 -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
ce54d834a5 Add shortcuts for native operations 2022-05-21 04:11:04 -04:00
Rerumu
f7978ec402 Optimize memory instance caching 2022-05-21 02:48:11 -04:00
Rerumu
25050a0c5a Wrap import names too 2022-05-20 23:01:42 -04:00
Rerumu
935fc86607 Wrap export names to prevent weird characters 2022-05-20 20:27:19 -04:00
Rerumu
0e92163cb3 Fix constant generation 2022-05-19 17:09:44 -04:00
Rerumu
7913dd507a Factor out operator analysis and simplify output 2022-04-29 23:30:55 -04:00
Rerumu
e4dc725ec0 Fix empty function list fail 2022-04-27 05:41:55 -04:00
Rerumu
6b0a704ebb Refactor Luau codegen 2022-04-27 04:35:57 -04:00