217 Commits

Author SHA1 Message Date
Volker Berlin
f5edb58911
define CATCH_ALL 2022-06-12 21:23:19 +02:00
Volker Berlin
c392afc76f
Use a BLOCK with input parameters for SWITCHES so that the start position of the SWITCH value does not have to be determined. #43 2022-06-05 23:04:12 +02:00
Volker Berlin
3e4d1794a4 correct method parameter names with debugging 2022-03-19 20:05:29 +01:00
Volker Berlin
710127bb44 Fix NULL values for INSTANCEOF and CAST. 2022-03-06 17:00:41 +01:00
Volker Berlin
1bfe16b17b [EH] Replace event with tag https://github.com/WebAssembly/exception-handling/pull/161 2021-08-29 15:10:05 +02:00
Volker Berlin
5d2a3805db Does not write the type eqref to the output if GC is not enabled 2021-05-02 13:54:11 +02:00
Volker Berlin
b755f6fd08 simplify cast like GC milestone 3 2021-03-27 14:42:25 +01:00
Volker Berlin
d3261149e6 Update the exception handling support to the current proposal 2021-02-27 22:22:24 +01:00
Volker Berlin
cf7e66901d Add support for complex block types 2021-02-27 20:40:30 +01:00
Volker Berlin
f3531914f0 fix binary coding of types in table section 2021-02-14 19:16:20 +01:00
Volker Berlin
945c245802 use the right opcode for NEW_WITH_RTT (c&p error) 2021-02-14 18:32:51 +01:00
Volker Berlin
c1e8191ee0 use also ref.cast for every cast. 2021-02-13 20:56:42 +01:00
Volker Berlin
cde24d98ed Fix Struct.NEW_DEFAULT for GC mode. 2021-01-16 17:38:11 +01:00
Volker Berlin
5c7f7f380c Use the GC type for strings and classes table. 2021-01-03 17:14:55 +01: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
46b09a05bd fix declaring of array types in binary format 2021-01-02 18:18:28 +01:00
Volker Berlin
f9de14d88e improve array handling for GC mode 2021-01-02 16:44:38 +01:00
Volker Berlin
58d6cbc4de Does not register primitive types as StructType in wasm 2020-09-30 20:17:15 +02:00
Volker Berlin
ad1ea166dd Switch to the latest GC coding of V8 2020-09-26 15:59:57 +02:00
Volker Berlin
856194dbce fix type handling for NUL values with GC support 2020-09-24 21:46:02 +02:00
Volker Berlin
be56c02b15 improve array handling with GC 2020-08-09 19:19:58 +02:00
Volker Berlin
6d2a90785c remove type annotation from ref.is_null. Disable node until a new v8 canary version is available. 2020-06-29 21:00:47 +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
b6238124c7 Replace gradle node plugin and switch to V8 canary. 2020-06-07 12:00:40 +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
374ab7121b revert event section order until v8 in node it support 2020-04-24 20:55:52 +02:00
Volker Berlin
87359fb497 Simplify the try/catch structure 2020-04-18 13:09:11 +02:00
Volker Berlin
02f41dd52a convert try/catch to block/br 0 if exception handling is disabled 2020-04-13 12:01:21 +02:00
Volker Berlin
bab77094c2 Write also for BR_ON_EXN an UNREACHABLE instruction 2020-04-10 16:33:32 +02:00
Volker Berlin
8262a45343 Write also the import function names into the debug section (custom section name). 2020-04-05 21:42:40 +02:00
Volker Berlin
9bbc82bb6d Remove all special handling for SpiderMonkey. It is compatible now. 2020-04-04 11:40:35 +02:00
Volker Berlin
65a1f3ff76 implements support for static class constructors 2020-04-02 21:01:11 +02:00
Volker Berlin
7fd8d16403 add opcodes for function references https://github.com/WebAssembly/function-references/blob/master/proposals/function-references/Overview.md#instructions-1 2020-03-28 16:27:06 +01:00
Volker Berlin
548d701444 write string constant in the text format for easer reading 2020-03-21 22:57:42 +01:00
Volker Berlin
ae0f1e3410 add FunctionType to differ between real and abstract methods 2020-03-20 20:35:13 +01:00
Volker Berlin
a6f1743109 simplify the string count 2020-03-11 20:03:00 +01:00
Volker Berlin
cc4a5e7858 add table for classes 2020-03-11 19:55:59 +01:00
Volker Berlin
9a157b74a2 Does not export memory. No JavaScript access is needed. 2020-03-11 19:34:49 +01:00
Volker Berlin
f761e4bf44 add support for "instanceof", WIP 2020-02-26 10:35:20 +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
94f1a07d49 Put event section before global sectionhttps://github.com/WebAssembly/exception-handling/pull/100#event-3027557988 2020-02-12 21:34:00 +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
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