126 Commits

Author SHA1 Message Date
Volker Berlin
54d2deef4f add option WASM_USE_EH to ignore exception support because currently not supported 2020-01-12 12:42:31 +01:00
Volker Berlin
442b582dfc accept also AnyType as block type 2020-01-02 18:10:48 +01:00
Volker Berlin
515123d4e1 use "sourceRoot" in map instead to concatenate it to every source file name 2019-12-31 14:06:30 +01:00
Volker Berlin
8589dbae66 add support for SOURCE_MAP_BASE 2019-12-31 13:04:52 +01:00
Volker Berlin
835cf45f61 C&P error 2019-11-21 20:02:44 +01:00
Volker Berlin
9286113b0c more wat instructions 2019-11-19 19:48:24 +01:00
Volker Berlin
86d239986e add memory instructions 2019-11-18 20:08:18 +01:00
Volker Berlin
8f36ed4d6d initial checkin for StringManager (WIP) 2019-11-10 12:57:58 +01:00
Volker Berlin
baf7fb9cf0 Add table.set/get 2019-11-03 19:00:49 +01:00
Volker Berlin
87039232eb export the memory with the name "memory" 2019-11-02 19:20:28 +01:00
Volker Berlin
fac7e68b43 optimize the memory section, write only if needed 2019-11-02 19:11:18 +01:00
Volker Berlin
1dd644b67a Generalize the writing of the export section for future improvements 2019-11-02 18:59:09 +01:00
Volker Berlin
2efe7768e2 Rename anyfunc -> funcref 2019-11-02 12:11:10 +01:00
Volker Berlin
6ddf5b1c85 write memory/data section also with nonGC polyfill 2019-09-14 21:26:46 +02:00
Volker Berlin
d4a2214131 Move duplicated code from implementations of writeVirtualFunctionCall() into the caller WasmCallIndirectInstruction 2019-09-13 20:04:03 +02:00
Volker Berlin
5437ed54ed call ref_eq polyfill in non gc mode 2019-09-11 20:32:36 +02:00
Volker Berlin
b4d2f6caa2 use WasmOptions on more places for consistency 2019-09-10 17:49:05 +02:00
Volker Berlin
7667c1a080 rename ArrayOpertion.LENGTH -> LEN for more consistency 2019-08-11 13:06:31 +02:00
Volker Berlin
9bb6e64ce8 Add support for "copysign" for the text format. 2019-08-03 20:51:00 +02:00
Volker Berlin
c2b8505634 Math.min/max operation 2019-07-18 19:21:11 +02:00
Volker Berlin
03ed725262 implements abs instruction 2019-07-17 18:45:36 +02:00
Volker Berlin
588ac6db47 implement reinterpret opcodes and use it in the WatParser. 2019-07-14 12:41:40 +02:00
Volker Berlin
c64c620a38 more math operation for the text format (Watparser) 2019-07-13 15:46:20 +02:00
Volker Berlin
ed1b40f3a7 implement the sqrt instruction 2019-07-06 15:42:47 +02:00
Volker Berlin
fbdd0eb3d0 improve error handling 2019-06-23 12:55:14 +02:00
Volker Berlin
2b67b6b1da compact the local variable table if there multiple of the same type 2019-06-15 12:29:59 +02:00
Volker Berlin
90126b16da duplicate the this on stack before a virtual method call invoke 2019-06-09 21:09:05 +02:00
Volker Berlin
1ee77584d9 write the vtable of objects to the data section. Use the vtable offset into the data section in the new operation of objects. 2019-06-09 17:17:47 +02:00
Volker Berlin
c410adc636 define the types in the prepare phase. 2019-06-04 18:09:34 +02:00
Volker Berlin
557c348ed7 extract writeMethodParamStart() from writeMethodStart() and prepareImport() 2019-06-02 11:44:28 +02:00
Volker Berlin
625e5fbef7 pass the type to a virtual function call 2019-05-20 21:28:46 +02:00
Volker Berlin
30efaaed95 pass virtual function index 2019-05-18 21:37:19 +02:00
Volker Berlin
5691446195 rename GET/SET_GLOBAL --> GOLBAL_GET/SET 2019-05-16 21:38:51 +02:00
Volker Berlin
4e98efeb5d prepare the using of call_indirect 2019-05-05 17:25:43 +02:00
Volker Berlin
8e439eb83e prepare the using of memory and data section 2019-05-01 17:11:14 +02:00
Volker Berlin
fbc687ee92 Use ref types alps in globals 2019-04-27 21:14:55 +02:00
Volker Berlin
b08a986945 Write the "this" parameter type of a method as ref type instead of anyref. 2019-04-24 21:41:33 +02:00
Volker Berlin
b7323776d1 Use index for fields of structs in text format until there are better naming rules. 2019-04-22 15:56:11 +02:00
Volker Berlin
02a2e9d8ff Write also the fields of super classes in the struct description. 2019-04-21 21:33:22 +02:00
Volker Berlin
e037de5646 Also write prefix ref_type in the local variable declaration. 2019-04-21 10:45:17 +02:00
Volker Berlin
31f86ae931 GcFeatureOptIn for SpiderMonkey 2019-04-19 20:34:31 +02:00
Volker Berlin
76435a76b9 Add package path to Java source files 2019-04-02 20:58:01 +02:00
Volker Berlin
47430b3bc0 Fix the offset for the source map positions. #6 2019-04-01 20:33:12 +02:00
Volker Berlin
dd9eb4b049 write sourceMappingURL custom section 2019-04-01 16:17:41 +02:00
Volker Berlin
ce93ce517e Write a source map if DebugNames is enabled. #6 2019-03-31 13:29:40 +02:00
Volker Berlin
0b1ff00ae5 next step for source map #6 2019-03-31 10:39:59 +02:00
Volker Berlin
e5036cc053 remove warnings 2019-03-31 10:26:08 +02:00
Volker Berlin
accf9188ef ApiDoc 2019-03-31 09:51:21 +02:00
Volker Berlin
ed4fac4cbd Add a target handler. 2019-03-30 22:23:36 +01:00
Volker Berlin
7d8424a2b0 pass sourcefile for a source map. #6 2019-03-28 18:26:25 +01:00