386 Commits

Author SHA1 Message Date
Volker Berlin
272fa76af0 Write the type of Object fields in structs as ref type instead of anyref. 2019-04-26 17:28:57 +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
e8a4613d74 split addStructInstruction() 2019-04-24 19:54:30 +02:00
Volker Berlin
a2a185be8a Search className and fieldName separately 2019-04-22 21:24:22 +02:00
Volker Berlin
3af321a076 Use a temporary hack for SpiderMonkey WasmTextToBinary 2019-04-22 16:21:02 +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
2be6f1a3be Write the default/initial values before struct.new 2019-04-20 21:41:46 +02:00
Volker Berlin
09b817117a Generalize the usage of SyntheticFuctionName 2019-04-20 18:44:23 +02:00
Volker Berlin
cc0ba1498d Struct type variables must declared as ref 2019-04-20 15:23:53 +02:00
Volker Berlin
bddf4c7525 correct binary encoding for GC spec version 3 2019-04-19 21:22:20 +02:00
Volker Berlin
31f86ae931 GcFeatureOptIn for SpiderMonkey 2019-04-19 20:34:31 +02:00
Volker Berlin
f466fc5c09 Correct the coding of Struct like the spec https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version2.md 2019-04-19 20:33:33 +02:00
Volker Berlin
efa65bb377 More normalize of names for SpiderMonkey 2019-04-19 20:29:20 +02:00
Volker Berlin
3095f29f3d floating point numbers must written with hexadecimal literals 2019-04-19 17:39:49 +02:00
Volker Berlin
decfdf77f1 SpiderMonkey required global initial values in parentheses 2019-04-19 17:39:03 +02:00
Volker Berlin
cfa3a4377e Patch the function names for SpiderMonkey to handle its limitation. 2019-04-19 16:00:43 +02:00
Volker Berlin
cb65505596 use temporary variables for a DUP instead a function call with multiple return types because SpiderMonkey it does not support it currently and it also seems more efficient. 2019-04-19 10:58:00 +02:00
Volker Berlin
481bffe31a Fix the type of array.get operation. Before it was ever i32 from array index. 2019-04-17 18:26:52 +02:00
Volker Berlin
f0a0b0116b fix idx of hidden variables 2019-04-14 15:42:37 +02:00
Volker Berlin
9653520c2b Rewrite the LocalVariableManager to handle the Java reuse of a variable slot with different type. 2019-04-14 14:29:09 +02:00
Volker Berlin
0ad94fbc56 Fix the lineNumer in some WasmExceptions 2019-04-14 14:06:56 +02:00
Volker Berlin
cd7e20f5ed pass the LocalVariableTable and the code position of variable using to the VariableManager 2019-04-06 17:51:29 +02:00
Volker Berlin
03a5c36ace API doc 2019-04-06 17:49:28 +02:00
Volker Berlin
58fbce005a simplify 2019-04-04 18:54:52 +02:00
Volker Berlin
76435a76b9 Add package path to Java source files 2019-04-02 20:58:01 +02:00
Volker Berlin
cba37f1cef remove debug code 2019-04-02 20:57:00 +02:00
Volker Berlin
3ba7b44089 The source map lines are not zero based. Lines are one based. fix #6 2019-04-01 20:35:20 +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
82bf9f7eea generalize the size() implementation 2019-03-31 12:25:10 +02:00
Volker Berlin
5e40f1603e pass the line number to the parsed instructions for a source map generation #6 2019-03-31 11:23:45 +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
Volker Berlin
97b7b9dafd passing code position for a source map. #6 2019-03-26 18:21:20 +01:00
Volker Berlin
018fa3896a tail call opcodes 2019-03-23 17:10:47 +01:00
Volker Berlin
7ce99bec72 throw an exception for old byte code instructions 2019-03-23 16:05:14 +01:00
Volker Berlin
66945d2974 improve "goto_w" support 2019-03-21 21:14:21 +01:00
Volker Berlin
0b3c1987f5 first support for "goto_w" Java bytecode instruction 2019-03-20 19:11:38 +01:00
Volker Berlin
1b6fd3c7a5 Replace the fix length of 3 byte for GOTO with a nextPosition because goto_w use 5 bytes. 2019-03-19 19:35:42 +01:00
Volker Berlin
0b49204793 use declared local names for local.set/get 2019-03-14 22:10:35 +01:00
Volker Berlin
40d61c56a8 support for more as 255 variable slots added. 2019-03-13 22:09:21 +01:00
Volker Berlin
4bb145d116 Error message for native methods 2019-03-12 22:36:43 +01:00
Volker Berlin
c2be64a525 implements java bytecode frem and drem 2019-03-12 21:27:23 +01:00
Volker Berlin
3d5a98627f improve wat parser for native support. #2 2019-03-12 21:21:06 +01:00