732 Commits

Author SHA1 Message Date
Volker Berlin
45b5a4a955 InvokeDynamic, WIP 2020-01-25 21:17:42 +01:00
Volker Berlin
4872dd137a Add support for partial classes 2020-01-19 15:15:01 +01:00
Volker Berlin
7894963612
Merge pull request #12 from munchkinhalfling/patch-1
Fix wiki link
2020-01-18 15:50:46 +01:00
munchkinhalfling
065fbbc566
Fix wiki link
The wiki link originally pointed to /blob/master/wiki, whereas the wiki is at /wiki.
2020-01-18 09:04:03 -05:00
Volker Berlin
5f3c199e34 handle the empty DataCount section of WABT 1.0.13 2020-01-18 13:21:43 +01:00
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
e43a8277c1 add option WASM_USE_EH to ignore exception support because currently not supported 2020-01-12 12:46: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
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
f3bcd8e670 also print the generated JavaScript on error 2020-01-05 18:29:38 +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
1592d79cdd returns domString in export functions. 2020-01-03 21:08: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
820a686192 Unbox InvocationTargetException 2020-01-01 23:04:51 +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
7fa099298f link to wiki 2019-12-31 13:44:55 +01:00
Volker Berlin
d8d4ea05b0 Hello World Sample available 2019-12-31 13:12:34 +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
ff6de221f8 add hello world sample 2019-12-28 11:54:12 +01:00
Volker Berlin
d63ecdc716 add hello world sample 2019-12-28 11:49:38 +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
b4ae2757c7 lambdas 2019-12-24 12:41:45 +01:00
Volker Berlin
ac2e06d7ca run tests with UTF-8 encoding on all platforms 2019-12-23 22:07:22 +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