Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.object.basic/src/com/oracle/truffle/object/basic/DefaultStrategy.java @ 22143:af393429ae26
removed 7 Shape methods from the API
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Sat, 12 Sep 2015 22:03:23 +0200 |
parents | 9c8c0937da41 |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22142:cf604b9633c9 | 22143:af393429ae26 |
---|---|
39 return newShape; | 39 return newShape; |
40 } | 40 } |
41 | 41 |
42 private static boolean assertLocationInRange(Shape shape, Location location) { | 42 private static boolean assertLocationInRange(Shape shape, Location location) { |
43 BasicLayout layout = (BasicLayout) shape.getLayout(); | 43 BasicLayout layout = (BasicLayout) shape.getLayout(); |
44 assert (shape.getPrimitiveFieldSize() + ((LocationImpl) location).primitiveFieldCount() <= layout.getPrimitiveFieldCount()); | 44 assert (((ShapeImpl) shape).getPrimitiveFieldSize() + ((LocationImpl) location).primitiveFieldCount() <= layout.getPrimitiveFieldCount()); |
45 assert (shape.getObjectFieldSize() + ((LocationImpl) location).objectFieldCount() <= layout.getObjectFieldCount()); | 45 assert (((ShapeImpl) shape).getObjectFieldSize() + ((LocationImpl) location).objectFieldCount() <= layout.getObjectFieldCount()); |
46 return true; | 46 return true; |
47 } | 47 } |
48 | 48 |
49 public Shape ensureSpace(Shape shape, Location location) { | 49 public Shape ensureSpace(Shape shape, Location location) { |
50 Objects.requireNonNull(location); | 50 Objects.requireNonNull(location); |