use of com.oracle.truffle.api.object.ObjectLocation in project graal by oracle.
the class LocationTest method testOnlyObjectLocationForObject.
@Test
public void testOnlyObjectLocationForObject() {
DynamicObject object = rootShape.newInstance();
object.define("obj", new Object());
Location location = object.getShape().getProperty("obj").getLocation();
Assert.assertTrue(location instanceof ObjectLocation);
DOTestAsserts.assertLocationFields(location, 0, 1);
DOTestAsserts.assertShapeFields(object, 0, 1);
}
Aggregations