507 Commits

Author SHA1 Message Date
Volker Berlin
534cd19c0f implements Class.getSimpleName() 2021-05-23 14:36:18 +02:00
Volker Berlin
4f4f9ddc29 implement Class.isArray 2021-05-23 12:42:37 +02:00
Volker Berlin
466714bd88 more stub methods to compile the Java runtime 2021-05-23 12:04:20 +02:00
Volker Berlin
428794efae use original visibility also if not needed 2021-05-23 11:58:35 +02:00
Volker Berlin
4e9e5ca069 Fix IF construct with conditional operator inside THEN. 2021-05-16 18:44:23 +02:00
Volker Berlin
712ce90393 Add some stub code 2021-05-02 14:47:39 +02:00
Volker Berlin
6d89fa8eca Handle array component type for not init (null) values. 2021-05-02 14:19:55 +02:00
Volker Berlin
631bd4efc3 Define the this parameter with the best matching type. 2021-05-02 14:08:19 +02:00
Volker Berlin
2d7b7f2f50 TODO 2021-05-02 11:46:07 +02:00
Volker Berlin
b35279a960 The needThis flag must be set already on marking a function as needing. If it will set on scan it is to late for stack calculation. 2021-04-17 20:27:28 +02:00
Volker Berlin
1771ab1f39 Add support for Lambda expressions with parameters 2021-04-03 22:06:39 +02:00
Volker Berlin
6d4379b2e8 implements StructType.isSubTypeOf(x) for Arrays and Lambdas 2021-03-28 20:32:52 +02:00
Volker Berlin
1f167d99b9 implements StructType.isSubTypeOf(x) 2021-03-28 15:16:45 +02:00
Volker Berlin
f4fd312d31 fix assignment of parameters from stack for lambda expressions with parameters 2021-03-28 10:56:51 +02:00
Volker Berlin
d480471e27 Use also local.tee instruction for reused with dup instructions 2021-03-27 18:27:00 +01:00
Volker Berlin
4e2f35a073 ApiDoc @Nonnull 2021-03-27 16:37:30 +01:00
Volker Berlin
66ee596fcf pass the parameters of a lamba expression to the lambda type 2021-02-28 22:20:49 +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
99e406958f Type specific NULL constant values. 2021-02-14 16:27:10 +01:00
Volker Berlin
fb7e3e2468 array.len needs a match between variable type and given type. Thats wee needs a cast in WASM to come from Object to a specific array type. 2021-02-14 11:22:21 +01:00
Volker Berlin
c1e8191ee0 use also ref.cast for every cast. 2021-02-13 20:56:42 +01:00
Volker Berlin
bb97efa1f5 enable lambda expressions 2021-01-24 18:57:00 +01:00
Volker Berlin
740b7a8c19 add a variable slot for THIS parameter to lambda methods to increment the variable index. 2021-01-24 18:41:01 +01:00
Volker Berlin
c1869baee5 add THIS parameter to lambda methods 2021-01-24 13:49:23 +01:00
Volker Berlin
3e42160655 implement more Lambda stuff 2021-01-23 22:16:16 +01:00
Volker Berlin
cde24d98ed Fix Struct.NEW_DEFAULT for GC mode. 2021-01-16 17:38:11 +01:00
Volker Berlin
de1befcc1d Make interfaces castable to java/lang/Object 2021-01-12 22:10:14 +01:00
Volker Berlin
8263463be9 annotation 2021-01-03 19:20:44 +01:00
Volker Berlin
536fe8385f need also to use the component type for object array get/set instructions 2021-01-03 14:50:50 +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
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
26ec7ece48 Handle different versions of a class in the library path 2020-12-12 20:42:46 +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
1c84eac0dc implements java/lang/reflect/Array.newInstance 2020-09-27 13:17:58 +02:00
Volker Berlin
a74563c5d1 separate the native WASM code in a separate package 2020-09-26 18:43:41 +02:00
Volker Berlin
856194dbce fix type handling for NUL values with GC support 2020-09-24 21:46:02 +02:00
Volker Berlin
77d81e3f13 API doc 2020-09-24 20:56:54 +02:00
Volker Berlin
b14a1f3202 API doc 2020-09-24 20:55:14 +02:00
Volker Berlin
b9a904ab42 Fix array class name for more complex object arrays 2020-09-23 19:47:06 +02:00
Volker Berlin
0d7beb611b docu 2020-09-23 19:45:00 +02:00
Volker Berlin
f40173a7f6 Replacement for Array.getLength(x) 2020-09-20 14:00:41 +02:00
Volker Berlin
622fd5d63c use constants for primitive type IDs 2020-09-20 13:59:13 +02:00
Volker Berlin
1fc21e4033 remove annotation 2020-08-18 08:27:19 +02:00
Volker Berlin
be56c02b15 improve array handling with GC 2020-08-09 19:19:58 +02:00
Volker Berlin
28b03b05c2 declare array types only once; add "value" field to array with GC objects 2020-08-09 15:24:10 +02:00
Volker Berlin
3e9a8b1460 fix findValueTypeFromStack after a CAST 2020-08-08 23:20:09 +02:00