Mercurial > hg > truffle
diff truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java @ 22088:22ce537a52fd
remove ShapeVisitor from the API
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Mon, 17 Aug 2015 15:37:26 +0200 |
parents | 5d9e5f866821 |
children | 476b483c8be2 |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Mon Aug 17 14:58:34 2015 +0200 +++ b/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java Mon Aug 17 15:37:26 2015 +0200 @@ -910,6 +910,10 @@ return null; } + public <R> R accept(ShapeVisitor<R> visitor) { + return visitor.visitShape(this); + } + public abstract static class BaseAllocator extends Allocator implements LocationVisitor, Cloneable { protected final LayoutImpl layout; protected int objectArraySize;