98 Commits

Author SHA1 Message Date
Volker Berlin
66931d810d add TEE_LOCAL, GET_GLOBAL, SET_GLOBAL 2018-05-11 17:00:34 +02:00
Volker Berlin
7f92d062e9 implements br_table 2018-05-05 21:39:36 +02:00
Volker Berlin
ac9758334d Split BlockOperator; handle the br operator 2018-05-04 20:52:54 +02:00
Volker Berlin
987d26de64 handle the block operator 2018-05-03 22:57:44 +02:00
Volker Berlin
02c76d407e docu 2018-05-03 22:53:39 +02:00
Volker Berlin
7ba809ac86 implements "neg" instruction code 2018-04-02 19:15:42 +02:00
Volker Berlin
d78e958342 more numerical operation codes 2018-04-02 19:03:45 +02:00
Volker Berlin
327d685d32 implements "pop" instruction code 2018-04-02 11:53:12 +02:00
Volker Berlin
6da8916a75 implements all data conversions instruction codes 2018-04-02 10:48:24 +02:00
Volker Berlin
2dd7e2cb5c more data conversion op codes 2018-04-01 12:02:40 +02:00
Volker Berlin
9c56f8b7ac more control flow operators 2018-03-31 19:28:58 +02:00
Volker Berlin
b23683ff68 more if conditions 2018-03-28 20:07:51 +02:00
Volker Berlin
79ee98e8ce Implements the ELSE control structure 2018-03-27 20:04:35 +02:00
Volker Berlin
8d7ea08f64 implements byte code ifne 2018-03-25 21:06:18 +02:00
Volker Berlin
d26b9bbb94 first step of a "if" implementation 2018-03-25 12:57:04 +02:00
Volker Berlin
014d3a1acf Add more numerical operations 2018-03-24 21:09:53 +01:00
Volker Berlin
5c7b7256c7 return parameter type is written as "result" and not "return". 2018-03-24 12:46:47 +01:00
Volker Berlin
4836024e4e Add support for invoke static method calls 2018-03-24 12:33:56 +01:00
Volker Berlin
33c1b028b5 use UTF8 encoding for section names 2017-04-17 10:25:35 +02:00
Volker Berlin
4b2089b88d the shift parameter for i64 data must also be of type i64. 2017-04-16 23:24:37 +02:00
Volker Berlin
cfac54ec40 add integer bitt operations 2017-04-16 12:20:53 +02:00
Volker Berlin
d2eb2e160f add support for mul and div 2017-04-14 16:31:35 +02:00
Volker Berlin
ac57b04730 add "sub" operation 2017-04-11 21:12:27 +02:00
Volker Berlin
0353a8104c add support for the first value type conversion 2017-04-11 17:47:21 +02:00
Volker Berlin
f9ff233350 line encoding 2017-04-11 17:46:08 +02:00
Volker Berlin
01afea0f0b line encoding 2017-04-11 17:45:36 +02:00
Volker Berlin
1438d8a988 line encoding 2017-04-11 17:44:49 +02:00
Volker Berlin
88a841748b first conversion opcode 2017-04-11 17:41:28 +02:00
Volker Berlin
e698ba3607 Implements "add" for all data types 2017-04-09 18:46:27 +02:00
Volker Berlin
119d5ed7f4 add "add" operations 2017-04-09 18:44:25 +02:00
Volker Berlin
0328322724 Add support for floating constants 2017-04-09 12:44:01 +02:00
Volker Berlin
cd2c51fc0a use little endian for floating number 2017-04-09 12:41:47 +02:00
Volker Berlin
20ddb355a9 add writeFloat() and writeDouble() 2017-04-09 11:56:22 +02:00
Volker Berlin
92a878b5bf add support for long const 2017-04-08 18:48:45 +02:00
Volker Berlin
2766f8170a complete const codes 2017-04-08 18:14:41 +02:00
Volker Berlin
7add526da1 write methods with Export annotation as exported. 2017-03-31 20:43:57 +02:00
Volker Berlin
3e87ca8d6b Add external kinds 2017-03-31 20:38:03 +02:00
Volker Berlin
92dc727962 Write locals to binary format. 2017-03-26 13:40:50 +02:00
Volker Berlin
a5eee6aa7d Add method reset() 2017-03-26 11:46:46 +02:00
Volker Berlin
527f3d2bc7 Prevent endless loop in error case. 2017-03-26 11:41:21 +02:00
Volker Berlin
43cb89f546 add size() method 2017-03-26 11:39:06 +02:00
Volker Berlin
41ef70b2b1 first writer for the binary format writer. 2017-03-24 22:47:33 +01:00
Volker Berlin
dfcf86a7c9 Add helper classes to hold WebAssembly structures 2017-03-24 22:46:18 +01:00
Volker Berlin
1db20a66b6 Control flow operators 2017-03-24 22:40:10 +01:00
Volker Berlin
e9e7d1aecc add method writeTo() 2017-03-24 22:24:56 +01:00
Volker Berlin
984cfb2bc5 Does not write an empty section 2017-03-24 22:14:33 +01:00
Volker Berlin
afaaf7a555 extends from FilterOutputStream to wrap passing stream. 2017-03-24 18:07:20 +01:00
Volker Berlin
6693aa0f95 Initial binary module writer 2017-03-23 22:20:44 +01:00