299 Commits

Author SHA1 Message Date
NikVolf
cec6131c3b failing test for start section 2017-06-02 19:57:25 +03:00
Dan Gohman
7e63159a1b Move FunctionContext::new's call to push_frame to Interpreter::run_function.
This makes it more consistent with run_block and others, and also means
that FunctionContext::new doesn't need to be passed the function body
and doesn't need to return a Result, which simplify its users.
2017-06-02 09:22:03 -07:00
Robert Habermeier
8b14e9fdda make unsafe more safe 2017-05-31 18:44:52 +02:00
NikVolf
c03f2709cd public api and example update 2017-05-30 17:24:22 +03:00
NikVolf
d981bf4803 expose custom params for new program 2017-05-30 17:15:36 +03:00
NikVolf
5aa419d3d5 few doc comments 2017-05-22 19:54:56 +03:00
Svyatoslav Nikolsky
a0bfa322c6 UserFunctionExecutor 2017-05-19 09:36:50 +03:00
Svyatoslav Nikolsky
977df55323 NativeModuleInstance 2017-05-18 15:08:55 +03:00
NikVolf
3fb35f29b2 tests and bug fixed for i64store interpretation 2017-05-16 14:42:58 +03:00
NikVolf
fa86543fbb module reference in user functions closures 2017-05-15 19:03:49 +03:00
NikVolf
429e54d928 another extension of user functions tests 2017-05-15 16:15:05 +03:00
NikVolf
2063bed2bd exptended test for user functions 2017-05-15 15:57:46 +03:00
NikVolf
b7ff4d92d4 simple user function 2017-05-15 15:40:08 +03:00
NikVolf
21ff1509f6 user-functions initial 2017-05-15 13:58:55 +03:00
NikVolf
74d5f152bf add module resolving to program instance 2017-05-12 20:45:58 +03:00
NikVolf
53659c8b35 interpretter unhappy test 2017-05-12 19:49:51 +03:00
NikVolf
f02b2c5cad itemindex to public 2017-05-12 14:11:58 +03:00
Svyatoslav Nikolsky
19a7d875b0 Merge branch 'master' into interpreter 2017-05-10 13:09:37 +03:00
NikVolf
5f98122fbc global builder to module 2017-05-09 17:38:51 +03:00
NikVolf
81f79e84e7 global builder 2017-05-09 17:34:36 +03:00
NikVolf
9345ef5f22 export builder 2017-05-09 15:23:05 +03:00
Svyatoslav Nikolsky
640237ea56 env module implementation 2017-05-08 11:35:56 +03:00
Svyatoslav Nikolsky
65b09ceba1 fixed tests compilation 2017-05-04 19:54:51 +03:00
Svyatoslav Nikolsky
fb14751864 continue env 2017-05-04 19:50:48 +03:00
Svyatoslav Nikolsky
7511e3095a continue env 2017-05-04 19:30:42 +03:00
Svyatoslav Nikolsky
5c97dc0ce9 continue env 2017-05-04 19:25:00 +03:00
Svyatoslav Nikolsky
3c7ee09f8e continue env module implementation 2017-05-04 19:09:43 +03:00
NikVolf
ce40e22ef3 mutable signature 2017-05-04 12:13:59 +03:00
Svyatoslav Nikolsky
9a5ed312ec env memory 2017-05-04 12:01:21 +03:00
NikVolf
c82afccfda mutable typeref 2017-05-04 11:44:22 +03:00
Svyatoslav Nikolsky
b4215aed3c env module stub 2017-05-04 11:25:25 +03:00
Svyatoslav Nikolsky
15555aba2b fixed external memory/table init 2017-05-04 10:58:16 +03:00
Svyatoslav Nikolsky
013ff25b97 fixed InitExpr(Opcode::Global) 2017-05-04 10:37:33 +03:00
Svyatoslav Nikolsky
b57e6d5d98 TODOs 2017-05-03 11:55:05 +03:00
Svyatoslav Nikolsky
990936b0f2 fixed get_initializer 2017-05-03 11:45:28 +03:00
Svyatoslav Nikolsky
d9b7b4634c fixed store_f64 2017-05-03 11:37:54 +03:00
Svyatoslav Nikolsky
4646f64b91 fixed binary_f64 2017-05-03 11:23:34 +03:00
Svyatoslav Nikolsky
cc3abac681 global_get_set 2017-05-03 11:06:26 +03:00
Svyatoslav Nikolsky
1498ce1ec1 default values for locals 2017-05-03 10:46:59 +03:00
Svyatoslav Nikolsky
6f668911a5 remove Error::NotImplemented 2017-05-03 10:41:01 +03:00
Svyatoslav Nikolsky
8f2409d4ab import_function 2017-05-03 09:09:41 +03:00
Svyatoslav Nikolsky
a39112a940 unary_f64 2017-05-03 08:42:12 +03:00
Svyatoslav Nikolsky
01c727dcf5 unary_f32 2017-05-03 08:31:40 +03:00
Svyatoslav Nikolsky
c48aed4695 unary_i64 2017-05-03 08:20:52 +03:00
Svyatoslav Nikolsky
730ed39ae2 unary_i32 2017-05-03 08:18:24 +03:00
Svyatoslav Nikolsky
f2e463253b store_f64 2017-05-03 08:13:33 +03:00
Svyatoslav Nikolsky
69fecfa7a5 store_i64 2017-05-02 19:44:49 +03:00
Svyatoslav Nikolsky
294755bf3d store_i32 2017-05-02 19:36:54 +03:00
Svyatoslav Nikolsky
bcd555d103 nested_if 2017-05-02 19:29:37 +03:00
Svyatoslav Nikolsky
5f5ea9d301 load_f* 2017-05-02 19:25:09 +03:00