use of com.oracle.truffle.api.object.Shape.Allocator in project graal by oracle.
the class LocationTest method testLocationDecoratorEquals.
@Test
public void testLocationDecoratorEquals() {
Allocator allocator = rootShape.allocator();
Location intLocation1 = allocator.locationForType(int.class);
Location intLocation2 = allocator.locationForType(int.class);
Assert.assertEquals(intLocation1.getClass(), intLocation2.getClass());
Assert.assertNotEquals(intLocation1, intLocation2);
}
use of com.oracle.truffle.api.object.Shape.Allocator in project graal by oracle.
the class BasicLayout method createAllocator.
@Override
public Allocator createAllocator() {
LayoutImpl layout = this;
Allocator allocator = getStrategy().createAllocator(layout);
return allocator;
}
Aggregations