use of com.oracle.truffle.api.object.Property in project graal by oracle.
the class SLReadPropertyCacheNode method lookupLocation.
protected Location lookupLocation(Shape shape, Object name) {
/* Initialization of cached values always happens in a slow path. */
CompilerAsserts.neverPartOfCompilation();
Property property = shape.getProperty(name);
if (property == null) {
/* Property does not exist. */
throw SLUndefinedNameException.undefinedProperty(this, name);
}
return property.getLocation();
}
Aggregations