Skip to content

Commit

Permalink
Implement booleanValueOf
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Feb 8, 2024
1 parent 77c1ccb commit 7a0476a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,16 @@ private long nativeObjectCheck(final long oop, final Predicate<NativeObject> pre
// INTERPRETER PROXY METHODS //
///////////////////////////////

@SuppressWarnings("unused")
private long booleanValueOf(final long oop) {
Object object = objectRegistryGet(oop);
if (object instanceof Boolean bool) {
return returnBoolean(bool);
}
primitiveFail();
return returnNull();
}

@SuppressWarnings("unused")
private long byteSizeOf(final long oop) {
if (objectRegistryGet(oop) instanceof NativeObject nativeObject) {
Expand Down

0 comments on commit 7a0476a

Please sign in to comment.