You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,15 @@ The framework leverages the Java Class-File API introduced in Java 24 (JEP 484).
18
18
- Implements Sea-of-Nodes IR design
19
19
- Further examples and documentation: [SeaOfNodes/Simple](https://github.com/SeaOfNodes/Simple)
20
20
21
-
> 🚧 Scheduling logic for machine code transformation is under development.
21
+
> * 🚧 Scheduling logic for machine code transformation is under development.
22
+
> * 🚧 Exception handling is under development.
23
+
24
+
## Credits
25
+
- An excellent tutorial about the Class-File API: [Build A Compiler With The Java Class-File API by Dr. James Hamilton](https://jameshamilton.eu/programming/build-compiler-java-class-file-api)
22
26
23
27
## Example new instance creation
24
28
25
-
A simple Java example with constructor invocation, demonstrating the use of
29
+
A simple Java example with constructor invoke, demonstrating the use of
illegalArgument("Cannot store to non array of type " + TypeUtils.toString(array.type));
13
13
}
14
14
15
+
arrayType = (ClassDesc) array.type;
16
+
15
17
if (!index.type.equals(ConstantDescs.CD_int)) {
16
18
illegalArgument("Cannot store to non int index of type " + TypeUtils.toString(index.type));
17
19
}
18
20
19
-
if (array.type.componentType().isPrimitive() && !value.type.equals(array.type.componentType())) {
20
-
illegalArgument("Cannot store non " + TypeUtils.toString(array.type.componentType()) + " value " + TypeUtils.toString(value.type) + " to array of type " + TypeUtils.toString(array.type));
21
+
if (arrayType.componentType().isPrimitive() && !value.type.equals(arrayType.componentType())) {
22
+
illegalArgument("Cannot store non " + TypeUtils.toString(arrayType.componentType()) + " value " + TypeUtils.toString(value.type) + " to array of type " + TypeUtils.toString(array.type));
0 commit comments