Commit Graph

73 Commits

Author SHA1 Message Date
Ilya Rezvov 1fe669e762 use correct signed int representation 2018-04-10 20:50:26 -07:00
Ilya Rezvov f4e008ab9a fix arguments order on function call 2018-04-10 09:17:26 -07:00
Ilya Rezvov b7933df8c3 add actions interpretatiion 2018-04-09 14:36:14 -07:00
Ilya Rezvov 8ef3eadc9a parse arithmetic nan 2018-04-08 19:47:10 -07:00
Ilya Rezvov 277cfad6ff add host environment for script modules 2018-04-08 17:42:25 -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 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 8a22d84804 pass all tests 2018-03-20 21:52:02 -07:00
Ilya Rezvov 682e71defc fix tokenizing of numbers and expressions of offset 2018-03-20 21:33:11 -07:00
Ilya Rezvov 3400a7c1ad fix stack instructions parsing 2018-03-20 21:26:42 -07:00
Ilya Rezvov e9c5ad8dac fix function parsing 2018-03-20 21:11:59 -07:00
Ilya Rezvov 4ed8752744 add whole test files from Core Test Suit 2018-03-20 21:01:25 -07:00
Ilya Rezvov d9849f77bf parse wasm script grammar 2018-03-20 20:28:03 -07:00
Ilya Rezvov 4bf66b9295 fix module idents coding 2018-03-20 16:51:58 -07:00
Ilya Rezvov 952fa3bd97 add types for script extention 2018-03-20 16:17:10 -07:00
Ilya Rezvov edbdeaec46 start instruction evaluator 2018-03-14 21:12:01 -07:00
Ilya Rezvov c09397539f store integer const instructions as words 2018-03-03 10:20:02 -08:00
Ilya Rezvov 88696e4666 make tests green again 2018-02-25 16:12:56 -08:00
Ilya Rezvov c7ecb055d4 fix types indexes in some cases 2018-02-25 09:19:54 -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 254bfca5f8 fix function parsing 2018-02-24 20:36:11 -08:00
Ilya Rezvov e7978b8d48 properly handle order of params and result types in function type in call_indirect instruction 2018-02-23 17:01:22 -08:00
Ilya Rezvov 4c8a71de16 reduce shift/reduce conflicts 2018-02-23 16:40:40 -08:00
Ilya Rezvov 97ae291be5 handle call_indirect properly in raw instruction case 2018-02-23 16:17:11 -08:00
Ilya Rezvov a30e6676ff accept only folded form of instructions inside folded forms 2018-02-23 15:00:06 -08:00
Ilya Rezvov 31735c93aa handle raw instructions properly 2018-02-23 14:52:03 -08:00
Ilya Rezvov 75bdf0637f start binary format support 2018-02-18 19:03:21 -08:00
Ilya Rezvov 4f11058f4b desugarize exports 2018-02-18 10:19:12 -08:00
Ilya Rezvov 2774c04689 desugarize globals 2018-02-18 08:14:49 -08:00
Ilya Rezvov b4aae1f89f desugarize datas and elems 2018-02-17 17:45:11 -08:00
Ilya Rezvov a952a3c155 desugarize functions 2018-02-17 09:23:19 -08:00
Ilya Rezvov 4630002e36 desugarize instructions 2018-02-17 08:23:30 -08:00
Ilya Rezvov 23d83cc3fe add more desugaring 2018-02-15 21:20:29 -08:00
Ilya Rezvov 241669b1ec extract imports from module fields 2018-02-15 16:43:46 -08:00
Ilya Rezvov 4b2e6e2a91 desugarize type definitions 2018-02-15 15:30:53 -08:00
Ilya Rezvov f97441d6b0 define types for wasm internal structure and share some parts with text representation types 2018-02-14 20:21:20 -08:00
Ilya Rezvov a411ac1f52 use continuation pass style for ident propagation 2018-02-13 21:12:27 -08:00
Ilya Rezvov 33d789f239 add types exports 2018-01-26 14:00:43 -08:00
Ilya Rezvov 93a89e4470 simplify insturction type 2018-01-25 15:27:19 -08:00
Ilya Rezvov aae3401ff6 add abbreviation for memory inline data definition 2018-01-25 11:51:43 -08:00
Ilya Rezvov f547898e1f parse inline exports and imports in memory definition 2018-01-23 18:28:24 -08:00
Ilya Rezvov acd4d65027 add inline import and export parsing for globals 2018-01-23 11:40:16 -08:00
Ilya Rezvov e9e59f1a9b simplify function parsing code 2018-01-23 11:14:17 -08:00
Ilya Rezvov 23aa6d5238 remove unused rules 2018-01-23 10:33:34 -08:00
Ilya Rezvov a200b5a62d support inline module definitions 2018-01-23 09:42:00 -08:00
Ilya Rezvov 61c554d119 remove some unused rules 2018-01-22 21:15:30 -08:00
Ilya Rezvov 5618f59cc3 add more test files 2018-01-22 20:16:05 -08:00