Merge remote-tracking branch 'blak3mill3r/fix/fix-upcall-for-non-primitives' into develop
This commit is contained in:
commit
154dfcecb3
2 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. This change
|
||||||
### Fixed
|
### Fixed
|
||||||
- Long and double arguments to upcalls failed to compile in some cases
|
- Long and double arguments to upcalls failed to compile in some cases
|
||||||
- Void return types on upcalls would crash on serialization
|
- Void return types on upcalls would crash on serialization
|
||||||
|
- Non-primitive types on upcalls was unsupported and would generate invalid bytecode with `nil` instructions
|
||||||
|
|
||||||
## [0.1.251] - 2021-10-14
|
## [0.1.251] - 2021-10-14
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
||||||
|
|
@ -490,7 +490,7 @@
|
||||||
(if (seq types)
|
(if (seq types)
|
||||||
(let [prim (mem/primitive-type (first types))]
|
(let [prim (mem/primitive-type (first types))]
|
||||||
(recur (rest types)
|
(recur (rest types)
|
||||||
(conj acc [[(load-instructions prim) idx]
|
(conj acc [[(load-instructions prim :aload) idx]
|
||||||
(to-object-asm (first types))])
|
(to-object-asm (first types))])
|
||||||
(cond-> (inc idx)
|
(cond-> (inc idx)
|
||||||
(double-sized? prim)
|
(double-sized? prim)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue