68 Commits

Author SHA1 Message Date
Volker Berlin
1376af2f3f Rename StorageType to AnyType. 2019-01-14 20:09:00 +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
56fdf9018d write the struct type into the type section 2019-01-06 16:29: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
ad30f90f48 implements ifnull and ifnotnull 2018-12-15 22:33:25 +01:00
Volker Berlin
1b09c5fd8c implements ref.null 2018-12-14 20:47:53 +01:00
Volker Berlin
01dcb85b36 reduce the preparing and write more on the fly 2018-12-11 22:38:53 +01:00
Volker Berlin
c6800a895b experimental code for structs 2018-12-05 22:14:26 +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
74dcb4dc09 experimental code for arrays 2018-12-02 19:54:59 +01:00
Volker Berlin
fe1e15ee30 add method writeValueType to the WasmStream 2018-12-02 18:17:27 +01:00
Volker Berlin
4104a87597 fix java signature parsing with multiple return types 2018-11-29 18:35:56 +01:00
Volker Berlin
95b72762f7 Fix multiple return values 2018-11-25 17:03:54 +01:00
Volker Berlin
834c049354 Accept not prepared functions calls 2018-11-25 15:51:58 +01:00
Volker Berlin
d8de454a3f pass through FunctionName object 2018-11-24 16:14:52 +01:00
Volker Berlin
543e384c0b debug code for enable GcFeatureOptIn in SpiderMonkey 2018-11-17 21:13:13 +01:00
Volker Berlin
99f7786cf8 implements numeric max operation 2018-11-16 20:12:55 +01:00
Volker Berlin
101b759acb Add the Member interface to generalize the API usage 2018-11-10 10:46:36 +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
563075a578 write local method names if DebugNames is enabled 2018-10-13 18:10:05 +02:00
Volker Berlin
8e8489ee77 Write function names for debugging 2018-10-13 15:29:34 +02:00
Volker Berlin
a10d029e00 pass compiler properties to the module writers 2018-10-08 22:02:19 +02:00
Volker Berlin
df7cb74bcc Refactor the writing of sections more object oriented. 2018-10-07 21:20:14 +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
2c6fb9aae0 Add handling of global section. 2018-08-13 17:39:14 +02:00
Volker
3e9c26f198 Add writeOpCode(int) for simpler handling of 2 byte opcodes 2018-08-11 16:18:01 +02:00
Volker
d7c13c018e Use the new Non-trapping float-to-int conversions for Java like behavior. 2018-08-11 15:46:20 +02:00
Volker
ff3662db43 The different writeConst summarized to one method 2018-08-05 18:27:06 +02:00
Volker
b1eb27c474 support dynamic result type for an if block 2018-08-05 14:45:18 +02:00
Volker
a27733234f use experimental Sign-extension operators 2018-08-03 21:49:42 +02:00
Volker
d81da1f342 Use byte values for ValeTypes instead of Varint values. Prepare for ref
values.
2018-07-27 18:30:04 +02:00
Volker
776cf133bc Use UNREACHABLE operation after endless loop. 2018-07-27 17:51:36 +02:00
Volker Berlin
dea54b631c Split ModuleWriter in ModuleWrite and ModuleGenerator 2018-06-01 19:44:40 +02:00
Volker Berlin
4a5518c69a write import function parameters 2018-05-31 21:35:01 +02:00
Volker Berlin
ce78f9fe7a Remove duplicate function types from type section. 2018-05-30 21:19:01 +02:00
Volker Berlin
7d53f8d549 handle function call to imported function. 2018-05-30 19:26:34 +02:00
Volker Berlin
88a584cd63 First step to support imports. 2018-05-30 18:57:36 +02:00
Volker Berlin
a94bf26365 extract class FunctionName 2018-05-21 14:29:32 +02:00
Volker Berlin
652d6c3d6a Add support for the loop operator 2018-05-20 11:52:16 +02:00
Volker Berlin
5ea2eff713 implements if_br 2018-05-11 21:39:04 +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
7ba809ac86 implements "neg" instruction code 2018-04-02 19:15:42 +02:00
Volker Berlin
327d685d32 implements "pop" instruction code 2018-04-02 11:53:12 +02:00