305 Commits

Author SHA1 Message Date
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
9958a2bed9 implements instruction aconst_null 2018-12-14 20:50:08 +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
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
Volker Berlin
6f64f957b2 ApiDoc 2018-12-05 17:55:15 +01:00
Volker Berlin
f5e5d11af7 Add interface StorageType for struct support 2018-12-04 21:06:41 +01:00
Volker Berlin
ae08d21281 reorganize 2018-12-03 21:09:22 +01:00
Volker Berlin
c2c872024b write ValueType codes in signed LEB format 2018-12-03 20:52:01 +01:00
Volker Berlin
74dcb4dc09 experimental code for arrays 2018-12-02 19:54:59 +01:00
Volker Berlin
8f365d629b fix parsing of object signatures 2018-12-02 19:04:37 +01:00
Volker Berlin
4104a87597 fix java signature parsing with multiple return types 2018-11-29 18:35:56 +01:00
Volker Berlin
b2a359746d more dup operations 2018-11-26 20:35:50 +01:00
Volker Berlin
e9b7597eda Write also missing library functions 2018-11-25 15:11:42 +01:00
Volker Berlin
c2683f4576 improve the constructor of FunctionName 2018-11-25 14:33:35 +01:00
Volker Berlin
51b58e2a79 Add a function manager to add functions on demand. 2018-11-24 21:54:30 +01:00
Volker Berlin
1655310a0f Add getFunctionName() for available check. 2018-11-24 21:09:56 +01:00
Volker Berlin
eaeb09ee48 Add eqauls and hashCode to FunctionName 2018-11-24 21:02:30 +01:00
Volker Berlin
d8de454a3f pass through FunctionName object 2018-11-24 16:14:52 +01:00
Volker Berlin
2c792f4a4f add method addLibrary 2018-11-21 19:44:05 +01:00
Volker Berlin
5ca933f540 First step for internal library functions 2018-11-18 20:21:08 +01:00
Volker Berlin
c6897d8bf4 simplify the internal API 2018-11-18 13:22:45 +01:00
Volker Berlin
03b8e68ccb add signature to WasmTextCode to support more as one return value 2018-11-18 12:50:54 +01:00
Volker Berlin
8d018f8f04 use Member instead ConstantRef in method signature 2018-11-18 12:17:08 +01:00
Volker Berlin
d252b1b202 support WasmTextCode annotation 2018-11-16 20:38:37 +01:00
Volker Berlin
99f7786cf8 implements numeric max operation 2018-11-16 20:12:55 +01:00
Volker Berlin
0227137e2e use constants for annotations 2018-11-16 17:46:10 +01:00
Volker Berlin
0119a2bbc2 Add WatParser and tests 2018-11-11 11:00:52 +01:00
Volker Berlin
101b759acb Add the Member interface to generalize the API usage 2018-11-10 10:46:36 +01:00
Volker Berlin
4fd7d44263 Improve WasmCodeBuilder for later use with WatParser. 2018-11-09 20:14:30 +01:00
Volker Berlin
74e6c0db06 Split the ModuleGenerator in WasmCodeBuilder and ModuleGenerator 2018-11-04 20:28:42 +01:00
Volker Berlin
f15e9c8341 experimental exception handling 2018-11-03 18:01:42 +01:00
Volker Berlin
ce3e2d7546 improve exception message 2018-10-13 21:51:34 +02:00
Volker Berlin
c3b04e7016 exception value type 2018-10-13 21:21:53 +02:00
Volker Berlin
563075a578 write local method names if DebugNames is enabled 2018-10-13 18:10:05 +02:00
Volker
41e66c8a14 Add more TODO for open opcodes 2018-08-14 22:34:53 +02:00
Volker
6ade59d02d fix structure problems with globals in text writer. 2018-08-14 22:09:01 +02:00
Volker
658b859b62 Fix the signum of compare operations in the text format. 2018-08-14 21:28:17 +02:00
Volker
dd29280641 Add support for global (static) variables 2018-08-14 15:11:21 +02:00
Volker
c269bae443 Move method getValueType() into class ValueType. 2018-08-14 12:14:36 +02:00
Volker
758557f76b Fix getTempI32() that it work without the removed prepare phase. 2018-08-11 20:36:09 +02:00
Volker
fcaa15d22d Fix SWITCH start position detection and replace erroneous ValueStackManager 2018-08-11 18:12:40 +02:00
Volker
0822d9af8c END can not be outside of parent block 2018-08-10 20:35:17 +02:00