comparison truffle/com.oracle.truffle.object.basic/src/com/oracle/truffle/object/basic/DefaultLayoutFactory.java @ 22306:8bc57c7bbf88

Deprecate Layout.Builder#getAllowedImplicitCasts()
author Andreas Woess <andreas.woess@oracle.com>
date Tue, 13 Oct 2015 14:13:27 +0200
parents dc83cc1f94f2
children
comparison
equal deleted inserted replaced
22305:ae5c160bd047 22306:8bc57c7bbf88
28 import com.oracle.truffle.api.object.Property; 28 import com.oracle.truffle.api.object.Property;
29 import com.oracle.truffle.object.PropertyImpl; 29 import com.oracle.truffle.object.PropertyImpl;
30 30
31 public class DefaultLayoutFactory implements LayoutFactory { 31 public class DefaultLayoutFactory implements LayoutFactory {
32 public Layout createLayout(Layout.Builder layoutBuilder) { 32 public Layout createLayout(Layout.Builder layoutBuilder) {
33 return BasicLayout.createLayoutImpl(layoutBuilder.getAllowedImplicitCasts(), new DefaultStrategy()); 33 return BasicLayout.createLayoutImpl(layoutBuilder, new DefaultStrategy());
34 } 34 }
35 35
36 public Property createProperty(Object id, Location location) { 36 public Property createProperty(Object id, Location location) {
37 return createProperty(id, location, 0); 37 return createProperty(id, location, 0);
38 } 38 }