changeset 22538:ae2c10d36bed

SLContext: simplify createObject()
author Andreas Woess <andreas.woess@oracle.com>
date Mon, 11 Jan 2016 14:42:58 +0100
parents c6f1f40a87ba
children 762dfc692689
files truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Fri Jan 08 22:22:24 2016 +0100
+++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLContext.java	Mon Jan 11 14:42:58 2016 +0100
@@ -218,8 +218,11 @@
         Parser.parseSL(this, source);
     }
 
+    /**
+     * Allocate an empty object.
+     */
     public DynamicObject createObject() {
-        return LAYOUT.newInstance(emptyShape);
+        return emptyShape.newInstance();
     }
 
     public static boolean isSLObject(TruffleObject value) {