353 Commits

Author SHA1 Message Date
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
2f2c39a07a simplify the initializing 2020-02-24 21:08:29 +01:00
Volker Berlin
f2547bd0d2 duplicate THIS parameter also for interface calls 2020-02-24 18:16:36 +01:00
Volker Berlin
cb71374f57 add interface calls, WIP 2020-02-24 11:46:00 +01:00
Volker Berlin
a535c48363 API doc 2020-02-24 11:17:11 +01:00
Volker Berlin
88e539f2a0 remove dead code 2020-02-24 11:14:28 +01:00
Volker Berlin
8fd7ae26f7 ref_ne need also the non GC polyfill 2020-02-23 20:18:57 +01:00
Volker Berlin
82e5f367b8 fix debug message on error 2020-02-23 20:17:37 +01:00
Volker Berlin
762ecba363 Add error message for not supported class constants 2020-02-23 17:51:32 +01:00
Volker Berlin
a57d3020f9 fix wrong debug information 2020-02-23 17:50:23 +01:00
Volker Berlin
8379416cb8 add support for multi dimension array allocation 2020-02-09 18:05:31 +01:00
Volker Berlin
ce05e7aa5d remove obsolete hack 2020-02-01 20:31:27 +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
674eb84129 test for interface calls 2020-01-26 14:29:27 +01:00
Volker Berlin
43b41d4fad interface call, WIP 2020-01-25 23:42:22 +01:00
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
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
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
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
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
6285aee077 fix the the type of GET field of struct 2020-01-01 22:58:13 +01:00
Volker Berlin
77be20ed57 correct sourceFile and className on writing 2019-12-30 23:02:25 +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
371cde8c0e get_i32 must mark as used if used for field access 2019-12-23 20:56:12 +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
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