826 Commits

Author SHA1 Message Date
Volker Berlin
7247623dc6 use also registered replace methods if does not exists an original in the current search path. 2020-01-12 19:13:20 +01:00
Volker Berlin
8a24d0b8b8 remove debug code 2020-01-12 19:11:08 +01:00
Volker Berlin
b1e89a91ca add support for default methods 2020-01-12 17:13:52 +01:00
Volker Berlin
735aadbab4 fix NPE 2020-01-12 16:59:02 +01:00
Volker Berlin
dab750f3b6 log first occur of a method call 2020-01-12 14:19:05 +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
4377db747d use needThisParameter for popCount of method calls 2020-01-11 21:48:04 +01:00
Volker Berlin
f87e1c6519 api doc 2020-01-11 21:21:53 +01:00
Volker Berlin
1998b2b5b2 Instead the static flag we need to handle if there is an additional "this" parameter. 2020-01-11 20:31:05 +01:00
Volker Berlin
396bafa234 api doc 2020-01-11 18:31:07 +01:00
Volker Berlin
8d37faa81d improve the caching of parsed class files 2020-01-07 19:54:05 +01:00
Volker Berlin
3dbca800bb The constructor has one parameter more. 2020-01-05 22:07:20 +01:00
Volker Berlin
0201157ffb Also the throw instruction need the event handling 2020-01-05 21:54:17 +01:00
Volker Berlin
ee4409311f The object allocation does not consume a value from stack 2020-01-05 21:42:36 +01:00
Volker Berlin
783d22fa50 use valid JavaScript names for the JavaScriplt creator functions 2020-01-05 21:41:19 +01:00
Volker Berlin
6fa864b9fc throw consume also a value from the stack 2020-01-05 21:38:52 +01:00
Volker Berlin
b1f775a33b A goto to the next address is like a NOP operation 2020-01-05 20:32:26 +01:00
Volker Berlin
3823ddafc2 constructor has a hidden "this" parameter 2020-01-05 20:30:54 +01:00
Volker Berlin
1d5f097dd8 remove duplicate annotation, use the one from the webassembly-api 2020-01-03 21:16:30 +01:00
Volker Berlin
e0c258b6ab use the functions manager for the static flag for more flexibility on method replace 2020-01-03 21:06:46 +01:00
Volker Berlin
d103f97c04 replace also a class with annotation 2020-01-03 19:51:58 +01:00
Volker Berlin
442b582dfc accept also AnyType as block type 2020-01-02 18:10:48 +01:00
Volker Berlin
85386f4191 change the static ClassFile cache to an instance cache 2020-01-02 16:52:38 +01:00
Volker Berlin
525a2f2f87 change the static ClassFile cache to an instance cache 2020-01-02 15:15:21 +01:00
Volker Berlin
f32a1ac067 add getAnnotation() to classFile 2020-01-02 13:12:48 +01:00
Volker Berlin
6285aee077 fix the the type of GET field of struct 2020-01-01 22:58:13 +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
77be20ed57 correct sourceFile and className on writing 2019-12-30 23:02:25 +01:00
Volker Berlin
a60d58c352 add nullref 2019-12-26 17:58:23 +01:00
Volker Berlin
be882ed8ad Create js file also if target file does not exists currently. 2019-12-25 19:00:00 +01:00
Volker Berlin
2da919c9fd We need to list the used fields in the hierarchy 2019-12-24 14:25:25 +01:00
Volker Berlin
2ebc771c55 fix param names of instance methods. idx==0 is the this parameter. 2019-12-24 13:22:25 +01:00
Volker Berlin
7bd7e82063 Code chars in data section directly and not escaped 2019-12-23 21:28:26 +01:00
Volker Berlin
371cde8c0e get_i32 must mark as used if used for field access 2019-12-23 20:56:12 +01:00
Volker Berlin
0d92b32162 add the compiler self to the library path 2019-12-07 17:01:33 +01:00
Volker Berlin
aba8052de0 Move the exports after the imports in the wat format 2019-11-28 20:50:33 +01:00
Volker Berlin
7cbb8469e2 remove unused variable 2019-11-28 20:22:23 +01:00
Volker Berlin
724f39dc18 Warning for multiple CATCH blocks 2019-11-28 20:07:51 +01:00
Volker Berlin
1a89919984 the dup of this must on the end if there are no more parameters 2019-11-26 21:44:49 +01:00
Volker Berlin
d0221065fb improve error message 2019-11-26 20:30:49 +01:00
Volker Berlin
6511ab372f fix ClassCast with InvokeDynamic constant 2019-11-26 19:26:09 +01:00
Volker Berlin
2037b9e26b print also stacktrace to logger 2019-11-26 19:12:13 +01:00
Volker Berlin
8668d71b6c Fix the memory offset of strings with a dynamic synthetic function. 2019-11-24 14:44:56 +01:00
Volker Berlin
f61cebd285 implements reading from constant strings from memory 2019-11-23 20:39:10 +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
947f66502b Add support for i32.load to the wat parser and some small bug fixes 2019-11-18 21:32:35 +01:00
Volker Berlin
86d239986e add memory instructions 2019-11-18 20:08:18 +01:00
Volker Berlin
ed00c7a02f add support for i32.mul to wat parser 2019-11-18 17:36:26 +01:00