58 Commits

Author SHA1 Message Date
Volker Berlin
5450ccb2ce switch to unchecked Exceptions to work better with Lambda expressions 2017-04-17 11:58:38 +02: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
28d4fb9b1c add support for inc/dec 2017-04-16 11:28:11 +02:00
Volker Berlin
d2eb2e160f add support for mul and div 2017-04-14 16:31:35 +02:00
Volker Berlin
6632407c30 add "sub" operation 2017-04-11 21:16:27 +02:00
Volker Berlin
ac57b04730 add "sub" operation 2017-04-11 21:12:27 +02:00
Volker Berlin
cf289fc24c more i64 operations 2017-04-11 17:59:06 +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
8c8d2aaa00 line encoding 2017-04-11 17:43:24 +02:00
Volker Berlin
1e281f7dae Add enum for cast operations 2017-04-11 17:42:38 +02:00
Volker Berlin
88a841748b first conversion opcode 2017-04-11 17:41:28 +02:00
Volker Berlin
cf55b7c52e translate slot index to position index 2017-04-09 22:45:52 +02:00
Volker Berlin
68aaa5c589 add getPosition() to LocalVariable 2017-04-09 22:21:47 +02:00
Volker Berlin
14dc89aacb Implements "add" for all data types 2017-04-09 20:45:23 +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
a3807680b7 add sourceFile to WasmException 2017-04-09 18:18:53 +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
301f49c2f4 add getConstantPool() 2017-04-08 18:09:06 +02:00
Volker Berlin
ffafeea189 more op codes 2017-04-02 19:40:42 +02:00
Volker Berlin
b80553886b add method addFile(URL) 2017-04-02 13:50:01 +02:00
Volker Berlin
7d0f42c225 add method compileToBinary(File) 2017-04-02 10:04:23 +02:00
Volker Berlin
7add526da1 write methods with Export annotation as exported. 2017-03-31 20:43:57 +02:00
Volker Berlin
ec93b799b9 Add parser for annotations 2017-03-31 20:40:49 +02:00
Volker Berlin
ec1fc643c2 Add export annotation to mark methods for export 2017-03-31 20:39:31 +02:00
Volker Berlin
3e87ca8d6b Add external kinds 2017-03-31 20:38:03 +02:00
Volker Berlin
6de8d441b3 Write locals to text format. 2017-03-26 16:49:07 +02:00
Volker Berlin
212e18ccfa Fix IndexOutOfBoundsException if there are no local variables. 2017-03-26 16:23:41 +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
f9a7d13c57 add getSize() methods 2017-03-26 11:25:59 +02:00
Volker Berlin
8e1364fa9f remove debug code 2017-03-24 22:49:37 +01:00
Volker Berlin
49060e1e87 Add compileToBinary() to the public interface 2017-03-24 22:48:28 +01: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
761a5c1b49 Add operation code 2017-03-24 22:43:27 +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