75 Commits

Author SHA1 Message Date
Volker Berlin
c1b0feb0d5 Any array is a subtype of eqref 2021-05-02 13:56:36 +02:00
Volker Berlin
6d4379b2e8 implements StructType.isSubTypeOf(x) for Arrays and Lambdas 2021-03-28 20:32:52 +02:00
Volker Berlin
4d2dfdeaa2 use array.get_s/get_u for packed array types (i8/i16) 2021-01-02 21:43:02 +01:00
Volker Berlin
6bd993617c fix the order of parameters on the stack for array.get/set 2021-01-02 20:48:29 +01:00
Volker Berlin
f9de14d88e improve array handling for GC mode 2021-01-02 16:44:38 +01:00
Volker Berlin
c96b27a12e declare the native array type with GC enabled 2020-12-27 17:39:35 +01:00
Volker Berlin
2c0db289cd match eqref also to "java/lang/Object" like externref 2020-12-08 20:56:20 +01:00
Volker Berlin
58d6cbc4de Does not register primitive types as StructType in wasm 2020-09-30 20:17:15 +02:00
Volker Berlin
71b28f1d47 use real type code for arrays 2020-09-27 14:04:07 +02:00
Volker Berlin
b9a904ab42 Fix array class name for more complex object arrays 2020-09-23 19:47:06 +02:00
Volker Berlin
be56c02b15 improve array handling with GC 2020-08-09 19:19:58 +02:00
Volker Berlin
13e99875b0 implements class name for array objects 2020-07-08 20:54:16 +02:00
Volker Berlin
852bb25158 pass the component class index 2020-06-20 11:54:51 +02:00
Volker Berlin
1d3db1135b switch from anyref to eqref for GC code 2020-06-14 17:11:46 +02:00
Volker Berlin
890b3ec0df Adapt some GC changes 2020-06-13 19:51:33 +02:00
Volker Berlin
2b46b6dbdf In Java arrays extends from java/lang/Object that the ArrayType must be extends from the StructType. WIP 2020-06-01 11:17:47 +02:00
Volker Berlin
cfbadfa226 anyref --> externref, add kind to ref.null and ref.is_null, https://github.com/WebAssembly/reference-types/pull/87 2020-05-30 23:06:29 +02:00
Volker Berlin
87359fb497 Simplify the try/catch structure 2020-04-18 13:09:11 +02:00
Volker Berlin
5ec2e34c57 add isSubTypeOf(9 to the type hierarchy 2020-04-10 21:05:46 +02:00
Volker Berlin
65a1f3ff76 implements support for static class constructors 2020-04-02 21:01:11 +02:00
Volker Berlin
ae0f1e3410 add FunctionType to differ between real and abstract methods 2020-03-20 20:35:13 +01:00
Volker Berlin
2ec9600d32 Split the wasm stream for reused in generation data section stream 2020-02-26 10:17:11 +01:00
Volker Berlin
7a854ed786 Split the wasm stream for reused in generation data section stream 2020-02-26 10:05:59 +01:00
Volker Berlin
02696a6488 use a synthetic function call to calculate the function id of a virtual call. 2020-02-25 18:05:12 +01:00
Volker Berlin
db002f8d96 API doc 2020-02-25 15:36:54 +01:00
Volker Berlin
2f2c39a07a simplify the initializing 2020-02-24 21:08:29 +01:00
Volker Berlin
5410764249 implement CAST operation, WIP 2020-02-01 20:29:29 +01:00
Volker Berlin
8c12f5a3c9 implement "instanceof", WIP 2020-02-01 16:49:52 +01:00
Volker Berlin
3d8b759a2d ref type coding changed 2020-01-26 20:49:02 +01:00
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
8589dbae66 add support for SOURCE_MAP_BASE 2019-12-31 13:04:52 +01:00
Volker Berlin
a60d58c352 add nullref 2019-12-26 17:58:23 +01:00
Volker Berlin
86d239986e add memory instructions 2019-11-18 20:08:18 +01:00
Volker Berlin
672574abd0 Rename anyfunc -> funcref 2019-11-03 10:14:29 +01:00
Volker Berlin
6c0939f341 v128 added 2019-11-02 12:22:10 +01:00
Volker Berlin
2efe7768e2 Rename anyfunc -> funcref 2019-11-02 12:11:10 +01:00
Volker Berlin
b2f1fbc195 call ref_eq polyfill in non gc mode 2019-09-10 21:41:50 +02:00
Volker Berlin
50f10f1f47 move debugNames into WasmOptions 2019-09-10 17:52:14 +02:00
Volker Berlin
c1041325b7 add WasmOptions to reduce boilerplate code 2019-09-09 21:07:45 +02:00
Volker Berlin
8cd9d16a33 fix parsing of i8 and i16 arrays 2019-08-26 20:10:49 +02:00
Volker Berlin
083ebf263e improve the type handling of arrays 2019-08-21 20:52:12 +02:00
Volker Berlin
572d4d6c1f Rename except_ref to exnref 2019-08-21 19:07:59 +02:00
Volker Berlin
0b28099674 Add ArrayType and improve the Java type parser. 2019-08-14 20:07:39 +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
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
5826d6dded add field vtable 2019-05-17 21:40:38 +02:00