Mercurial > hg > truffle
changeset 22089:476b483c8be2
add PE assertion to DynamicObjectFactory
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Mon, 17 Aug 2015 15:50:13 +0200 |
parents | 22ce537a52fd |
children | 485481716f0e |
files | truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Mon Aug 17 15:37:26 2015 +0200 +++ b/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Mon Aug 17 15:50:13 2015 +0200 @@ -888,6 +888,7 @@ @ExplodeLoop public DynamicObject newInstance(Object... initialValues) { DynamicObject store = ShapeImpl.this.newInstance(); + CompilerAsserts.partialEvaluationConstant(instanceFields.length); for (int i = 0; i < instanceFields.length; i++) { instanceFields[i].setInternal(store, initialValues[i]); }