Skip to content

Commit

Permalink
Move CompilerAsserts.partialEvaluationConstant to allow compilation o…
Browse files Browse the repository at this point in the history
…f uncached case of object creation

Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Aug 14, 2024
1 parent a80bf83 commit f2cdca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trufflesom/src/trufflesom/vmobjects/SObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public SObject(final SClass instanceClass) {
}

public SObject(final SClass instanceClass, final ObjectLayout layout) {
CompilerAsserts.partialEvaluationConstant(layout);
clazz = instanceClass;
setLayoutInitially(layout);
}
Expand Down Expand Up @@ -122,7 +123,6 @@ public final void setClass(final SClass value) {

private static long[] getExtendedPrimStorage(final ObjectLayout layout) {
int numExtFields = layout.getNumberOfUsedExtendedPrimStorageLocations();
CompilerAsserts.partialEvaluationConstant(numExtFields);
if (numExtFields == 0) {
return null;
}
Expand Down

0 comments on commit f2cdca2

Please sign in to comment.