Commit Graph

68 Commits

Author SHA1 Message Date
Ilya Rezvov a1ae58b5f7 make parser monadic 2018-04-15 18:54:39 -07:00
Ilya Rezvov 73124a3eff pass all assert_invalid tests 2018-04-14 17:11:47 -07:00
Ilya Rezvov d7dc05b157 update tests from core repo 2018-04-14 16:35:18 -07:00
Ilya Rezvov 681e0e3eca fix br_if typing 2018-04-14 16:31:21 -07:00
Ilya Rezvov d0b1092064 simplify validation algorithm 2018-04-14 13:38:09 -07:00
Ilya Rezvov 23ed83a42e fix parsing of functions with incorrect type indexes 2018-04-13 16:56:25 -07:00
Ilya Rezvov 16bbc3d198 implement assert_invalid assertion 2018-04-13 14:25:23 -07:00
Ilya Rezvov 2955456e26 pass all assert_return tests 2018-04-11 21:15:56 -07:00
Ilya Rezvov 7a4735bbfc fix some conversions 2018-04-11 15:29:51 -07:00
Ilya Rezvov d64854aac1 clean up labels on exit from blocks and return correct type for i64 unary operations 2018-04-11 15:24:27 -07:00
Ilya Rezvov 11b6f4fdc8 fix if instruction execution 2018-04-11 14:54:05 -07:00
Ilya Rezvov 82c0433e5d fix corner cases for float instructions 2018-04-11 11:08:41 -07:00
Ilya Rezvov e0d9eeb51f fix tee_local semantic 2018-04-10 21:59:54 -07:00
Ilya Rezvov c644578d8b fix memory growing behavior 2018-04-10 21:25:54 -07:00
Ilya Rezvov c75900a2c8 fix loading of signed ints from memory 2018-04-10 21:09:58 -07:00
Ilya Rezvov ab1782c982 fix int instructions 2018-04-10 21:02:37 -07:00
Ilya Rezvov 1fe669e762 use correct signed int representation 2018-04-10 20:50:26 -07:00
Ilya Rezvov fd7ce7e450 fix copysign instruction 2018-04-10 16:56:42 -07:00
Ilya Rezvov f6cae32148 fix float numbers parsing 2018-04-10 15:04:18 -07:00
Ilya Rezvov f4e008ab9a fix arguments order on function call 2018-04-10 09:17:26 -07:00
Ilya Rezvov d055a4ff6d fix call_indirect evaluation 2018-04-09 21:41:17 -07:00
Ilya Rezvov dac931b055 implement assert_return assertion 2018-04-09 15:08:48 -07:00
Ilya Rezvov 8cd33831a1 'fix' type of br_if and comment multiple table definitions in test module 2018-04-08 20:06:25 -07:00
Ilya Rezvov 8ef3eadc9a parse arithmetic nan 2018-04-08 19:47:10 -07:00
Ilya Rezvov 6b376ee4cb fix elems validator 2018-04-08 17:51:04 -07:00
Ilya Rezvov 7a66ff7150 provide imports for modules from registery 2018-04-08 12:50:36 -07:00
Ilya Rezvov 98d9ca2399 fix parsing binary modules from text representation 2018-04-08 11:54:29 -07:00
Ilya Rezvov 87758b2789 fix memory growing for empty data segments 2018-04-08 10:53:14 -07:00
Ilya Rezvov 8b5c7fa154 grow tables and memories on module initialization 2018-04-08 10:45:09 -07:00
Ilya Rezvov d7641bcee2 fix implicit type extraction 2018-04-08 10:25:05 -07:00
Ilya Rezvov 43feccbf08 load modules in wasm script commands 2018-04-08 09:43:41 -07:00
Ilya Rezvov 4ed8752744 add whole test files from Core Test Suit 2018-03-20 21:01:25 -07:00
Ilya Rezvov 4bf66b9295 fix module idents coding 2018-03-20 16:51:58 -07:00
Ilya Rezvov 51f4cdfa53 fix arguments ordering for int binary operations 2018-03-16 10:11:06 -07:00
Ilya Rezvov 3d9cb6132b make fact work 2018-03-15 21:53:02 -07:00
Ilya Rezvov 88696e4666 make tests green again 2018-02-25 16:12:56 -08:00
Ilya Rezvov fdfdd14ace pass more tests on validation stage 2018-02-25 12:28:51 -08:00
Ilya Rezvov 6a3a7d56a5 fix context building for typechecker 2018-02-25 11:28:51 -08:00
Ilya Rezvov 1366c63bf3 pass more tests 2018-02-25 08:52:44 -08:00
Ilya Rezvov e05bcdd0cb handle functions with empty body 2018-02-24 21:49:06 -08:00
Ilya Rezvov 55215f56de pass more tests 2018-02-24 21:08:18 -08:00
Ilya Rezvov 97ae291be5 handle call_indirect properly in raw instruction case 2018-02-23 16:17:11 -08:00
Ilya Rezvov 31735c93aa handle raw instructions properly 2018-02-23 14:52:03 -08:00
Ilya Rezvov bf67333ec1 add test case for unhandled instructions representation 2018-02-23 11:23:36 -08:00
Ilya Rezvov 62bca80a3a make validation result monoid instance 2018-02-21 20:52:46 -08:00
Ilya Rezvov 7bd2914148 add some validation checks 2018-02-21 20:14:39 -08:00
Ilya Rezvov 55a6b482ef fix mem arg parsing 2018-02-19 18:48:50 -08:00
Ilya Rezvov f1eae1969a fix section parsing 2018-02-19 18:38:54 -08:00
Ilya Rezvov 928fa3a606 add deserializer for instructions and module 2018-02-19 18:36:17 -08:00
Ilya Rezvov 8dc40aa699 make serializer work correct 2018-02-19 14:30:06 -08:00