271 Commits

Author SHA1 Message Date
Volker Berlin
9bcc7347c1 Change the old text format to the new format. fix #3 2019-02-22 23:19:10 +01:00
Volker Berlin
f5ed8aeeb6 get_local --> local.get, set_local --> local.set, see #3 2019-02-20 21:42:52 +01:00
Volker Berlin
b4ca501f4c Does not save reused variables. Does not increment the maxLocals count. 2019-02-17 09:54:47 +01:00
Volker Berlin
6246840f90 Fix ArrayIndexOutOfRange with temp variable 2019-02-17 09:52:04 +01:00
Volker Berlin
99f7248fc8 fix NPE 2019-02-15 20:17:00 +01:00
Volker Berlin
c57e5d42cf fix local variable names 2019-02-15 20:02:13 +01:00
Volker Berlin
17acda9456 Start with the optimizer 2019-02-12 21:18:42 +01:00
Volker Berlin
ff345e68c2 normalization the local instruction 2019-01-27 21:13:48 +01:00
Volker Berlin
0d0e606983 Pass the StructType of WasmStructInstruction to the LocalevariableManager 2019-01-23 20:27:57 +01:00
Volker Berlin
24f1c24a84 Cleanup 2019-01-23 20:24:47 +01:00
Volker Berlin
6db1a8d1f5 DataCount 2019-01-23 17:56:50 +01:00
Volker Berlin
145a39079b use AnyType instead ValueType in the VariableManager 2019-01-20 19:58:23 +01:00
Volker Berlin
a06a93dd37 remove unused classes 2019-01-20 17:41:10 +01:00
Volker Berlin
a8c5affb18 handle null values 2019-01-20 11:31:33 +01:00
Volker Berlin
29911bc586 use synthetic method for dup instruction to handle the type dynamically 2019-01-20 10:41:33 +01:00
Volker Berlin
238a281757 Move the call to ValueTypeParser into the FunctionName 2019-01-18 18:17:19 +01:00
Volker Berlin
b677355c0f Convert ValueTypeParser to an Iterator 2019-01-18 17:48:12 +01:00
Volker Berlin
1376af2f3f Rename StorageType to AnyType. 2019-01-14 20:09:00 +01:00
Volker Berlin
522f25c326 improve supported array opertions 2019-01-13 14:42:24 +01:00
Volker Berlin
caa59cab83 implements struct.get/set 2019-01-13 11:36:07 +01:00
Volker Berlin
9ac92316f6 Write the real type of StructType instead anytype 2019-01-11 22:21:59 +01:00
Volker Berlin
d2683a32d7 set all fields mutable 2019-01-11 20:09:54 +01:00
Volker Berlin
7f55b23c7a set all fields mutable 2019-01-11 20:06:48 +01:00
Volker Berlin
ace7c2cdfb use getTypeForm() 2019-01-11 19:38:12 +01:00
Volker Berlin
b619d77ad1 fix the value of except_ref 2019-01-11 19:37:29 +01:00
Volker Berlin
b8039d6247 write the struct type into the type section 2019-01-06 16:39:51 +01:00
Volker Berlin
56fdf9018d write the struct type into the type section 2019-01-06 16:29:26 +01:00
Volker Berlin
c9ce8eb60b add getType() 2019-01-01 14:24:01 +01:00
Volker Berlin
0e02db9985 write function lazy to the output to hold space free for more meta informations 2019-01-01 12:26:32 +01:00
Volker Berlin
11b8dcb3be add getFields() 2019-01-01 11:43:49 +01:00
Volker Berlin
53e7f88d1c add getTypes(), getName(), remain creation order 2019-01-01 11:43:11 +01:00
Volker Berlin
bfc6cbb3f0 add TypeManager 2018-12-19 20:10:26 +01:00
Volker Berlin
6196648cc0 add support for objects equals/not equals (if_acmpeq,if_acmpne) 2018-12-17 21:22:10 +01:00
Volker Berlin
bc2975683a add getType() to WasmInstruction 2018-12-16 18:22:44 +01:00
Volker Berlin
5d237c2ae1 remove unused code 2018-12-16 11:23:35 +01:00
Volker Berlin
ad30f90f48 implements ifnull and ifnotnull 2018-12-15 22:33:25 +01:00
Volker Berlin
e5be9fd627 Add Event section type 2018-12-15 12:29:58 +01:00
Volker Berlin
9958a2bed9 implements instruction aconst_null 2018-12-14 20:50:08 +01:00
Volker Berlin
1b09c5fd8c implements ref.null 2018-12-14 20:47:53 +01:00
Volker Berlin
ba118b8531 support "boolean" type 2018-12-14 20:34:58 +01:00
Volker Berlin
c7d4ed0998 add null ref 2018-12-14 20:34:03 +01:00
Volker Berlin
2410694151 implements invokespecial 2018-12-14 19:59:49 +01:00
Volker Berlin
7701ce6993 write extra parameter for instance methods (non static) 2018-12-13 22:32:51 +01:00
Volker Berlin
d4012a751f compile on the fly only the needed instead all given 2018-12-13 20:05:13 +01:00
Volker Berlin
d7b283e73a replace anyref temporary with i64 2018-12-12 22:44:05 +01:00
Volker Berlin
461d62a321 split findPreviousPushInstruction() for the 2 different use cases 2018-12-12 19:38:20 +01:00
Volker Berlin
01dcb85b36 reduce the preparing and write more on the fly 2018-12-11 22:38:53 +01:00
Volker Berlin
34c7b09972 ApiDoc 2018-12-05 23:32:10 +01:00
Volker Berlin
f98ec612f8 experimental code for structs 2018-12-05 23:30:46 +01:00
Volker Berlin
c6800a895b experimental code for structs 2018-12-05 22:14:26 +01:00