Commit Graph
100 Commits
Author SHA1 Message Date
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
Rerumu c3a3a09107 Adjust some runtime emits 2022-05-21 03:51:27 -04:00
Rerumu 1e8f131eff Unify fuzzing and testing code 2022-05-21 03:31:02 -04:00
Rerumu 6c57a0dd11 Remove unsupported fast paths 2022-05-21 02:52:04 -04:00
Rerumu 8792a123f4 Fix and optimize conditionals 2022-05-21 02:52:02 -04:00
Rerumu 121774082e Fix typo in export 2022-05-21 02:51:18 -04:00
Rerumu bd49fd55a4 Fix unsigned literal emit 2022-05-21 02:51:15 -04:00
Rerumu a3d43ebe16 Fix bad runtime name 2022-05-21 02:50:14 -04:00
Rerumu 3fa4fa5d83 Link integer emit and runtime 2022-05-21 02:50:11 -04:00
Rerumu aea1df4e90 Add integer comparisons 2022-05-21 02:48:14 -04:00
Rerumu f7978ec402 Optimize memory instance caching 2022-05-21 02:48:11 -04:00
Rerumu 642711e67d Fix infix generation 2022-05-21 02:47:27 -04:00
Rerumu d5c9028be4 Start adding integer support for Luau 2022-05-21 02:47:27 -04:00
Rerumu 0366a74d0a Freeze integer types 2022-05-21 02:47:27 -04:00
Rerumu 30358c8205 Remove signedness test for unsigned constructor 2022-05-21 02:47:27 -04:00
Rerumu 2a6033c6f4 Improve numeric from_u64 and shifting 2022-05-21 02:47:27 -04:00
Rerumu 81fbbd455f Refactor some numeric operations 2022-05-21 02:47:27 -04:00
Rerumu c7d640b17e Make Luau integers use free functions 2022-05-21 02:47:27 -04:00
Rerumu d94be2d832 Remove unneeded pubs 2022-05-21 00:18:12 -04:00
Rerumu 3327d28ebd Ignore test with too many locals 2022-05-20 23:18:59 -04:00
Rerumu 25050a0c5a Wrap import names too 2022-05-20 23:01:42 -04:00
Rerumu 8464d70a93 Fix if statement label 2022-05-20 23:01:05 -04:00
Rerumu 280979d00f Remove local modules in tests 2022-05-20 22:51:45 -04:00
Rerumu 29e7c972ed Fix empty BrTable generation 2022-05-20 22:38:03 -04:00
Rerumu 935fc86607 Wrap export names to prevent weird characters 2022-05-20 20:27:19 -04:00
Rerumu d7d3f60754 Fix test module names 2022-05-20 20:27:19 -04:00
Rerumu 50cfa0f5ef Add basic test code 2022-05-20 20:04:50 -04:00
Rerumu b751e4fc78 Add official tests 2022-05-20 01:55:36 -04:00
Rerumu 7321595126 Rename fuzzing for clarity 2022-05-19 17:21:55 -04:00
Rerumu 0e92163cb3 Fix constant generation 2022-05-19 17:09:44 -04:00
Rerumu f9cf75c98a Delete odd new line 2022-05-19 04:20:58 -04:00
Rerumu acc21fc9a6 Simplify set creation code 2022-05-19 03:02:04 -04:00
Rerumu f528df9b9e Optimize memory instance caching 2022-05-19 02:47:39 -04:00
Rerumu 00d8dc4124 Remove old comment 2022-05-19 00:12:01 -04:00
Rerumu ceed957b12 Remove unneeded truncation 2022-05-18 20:57:29 -04:00
Rerumu 0278458c15 Remove load/store offset when 0 2022-04-30 00:13:44 -04:00
Rerumu a40335ee69 Remove unused runtime functions 2022-04-29 23:33:04 -04:00
Rerumu 7913dd507a Factor out operator analysis and simplify output 2022-04-29 23:30:55 -04:00