Skip to content

Commit

Permalink
[Truffle] We should use the stronger partialEvaluationConstant for sh…
Browse files Browse the repository at this point in the history
…apes.
chrisseaton committed Aug 20, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 539e83a commit 4283346
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -409,7 +409,7 @@ public void run(PropertyModel property, boolean last) {
}

stream.println(" assert factory != null;");
stream.println(" CompilerAsserts.compilationConstant(factory);");
stream.println(" CompilerAsserts.partialEvaluationConstant(factory);");
stream.printf(" assert creates%s(factory);%n", layout.getName());

for (PropertyModel property : layout.getAllNonShapeProperties()) {
@@ -490,7 +490,7 @@ public void run(PropertyModel property, boolean last) {
}

stream.println(" assert factory != null;");
stream.println(" CompilerAsserts.compilationConstant(factory);");
stream.println(" CompilerAsserts.partialEvaluationConstant(factory);");
stream.printf(" assert creates%s(factory);%n", layout.getName());

for (PropertyModel property : layout.getAllNonShapeProperties()) {

0 comments on commit 4283346

Please sign in to comment.