Commit Graph

116 Commits

Author SHA1 Message Date
Ilya Rezvov 96cd65ac24 implement store operations 2018-03-19 11:36:12 -07:00
Ilya Rezvov da6d15c63f add loading instructions for i64 2018-03-19 11:10:23 -07:00
Ilya Rezvov 4d6a8d6d3f add load instructions handling for primitive types and i32 parts 2018-03-18 22:18:54 -07:00
Ilya Rezvov a4ed63fe53 implement relation float operations 2018-03-18 19:59:23 -07:00
Ilya Rezvov 3be5bd0648 implement binary float operations 2018-03-18 19:53:40 -07:00
Ilya Rezvov 8bcfdb18c5 add unary float operations 2018-03-18 19:46:45 -07:00
Ilya Rezvov 1ba3044aa5 implement numeric conversion instructions 2018-03-18 19:18:41 -07:00
Ilya Rezvov 4775c42207 implement test and unary integer operations 2018-03-16 10:32:36 -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 421d7db976 implement int rel operations 2018-03-15 21:02:38 -07:00
Ilya Rezvov 36225ea479 implement int bin operations 2018-03-15 20:53:45 -07:00
Ilya Rezvov d5324acb40 implement call_indirect 2018-03-15 19:52:57 -07:00
Ilya Rezvov 6561ed0264 implement interpretation of control instruction 2018-03-15 19:42:24 -07:00
Ilya Rezvov edbdeaec46 start instruction evaluator 2018-03-14 21:12:01 -07:00
Ilya Rezvov 1b4a79655f store memory as word8 vector and do not grow mem and tables on initialization 2018-03-12 20:46:21 -07:00
Ilya Rezvov 8af5518e2b initialize elem and data segments 2018-03-12 10:04:17 -07:00
Ilya Rezvov 93d6d4a417 allocate memories and tables 2018-03-11 19:11:19 -07:00
Ilya Rezvov 867092c820 add globals allocation 2018-03-07 16:35:36 -08:00
Ilya Rezvov 1dab371720 calculate module instance 2018-03-07 14:40:19 -08:00
Ilya Rezvov a073456a63 adjust types to spec 2018-03-07 10:53:06 -08:00
Ilya Rezvov efcd8f35e2 refactor interpreter types 2018-03-04 20:18:18 -08:00
Ilya Rezvov c09397539f store integer const instructions as words 2018-03-03 10:20:02 -08:00
Ilya Rezvov b9e03584dd start interpreter 2018-02-28 21:20:52 -08:00
Ilya Rezvov 6075818a56 const expression get_global can refer only imported constant globals 2018-02-27 15:45:39 -08:00
Ilya Rezvov 8012373a96 finish validation phase 2018-02-27 15:28:38 -08:00
Ilya Rezvov 6866c886f3 Merge branch 'master' of github.com:SPY/haskell-wasm 2018-02-26 15:48:20 -08:00
Ilya Rezvov e373066ef5 add more validators 2018-02-26 15:48:11 -08:00
Ilya Rezvov 8a1a62f1a8 Merge pull request #1 from s-panferov/patch-1
Update README.md
2018-02-25 16:44:03 -08:00
Ilya Rezvov d2dbb16fce Update README.md 2018-02-25 16:43:28 -08:00
Stanislav Panferov df22143563 Update README.md 2018-02-25 16:42:26 -08:00
Stanislav Panferov 853334765f Update README.md 2018-02-25 16:40:26 -08: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 d53611c1e5 pass more tests 2018-02-25 09:53:28 -08:00
Ilya Rezvov c7ecb055d4 fix types indexes in some cases 2018-02-25 09:19:54 -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 254bfca5f8 fix function parsing 2018-02-24 20:36:11 -08:00
Ilya Rezvov d69f0fed99 check expression types 2018-02-24 19:29:06 -08:00
Ilya Rezvov 89e0fb89ed add instruction type signatures 2018-02-24 12:13:50 -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 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