comparison graal/com.oracle.truffle.object/src/com/oracle/truffle/object/PropertyImpl.java @ 21052:de8880bbf2e1

Truffle: simplify getProperty; minor cleanup
author Andreas Woess <andreas.woess@oracle.com>
date Mon, 20 Apr 2015 14:22:01 +0200
parents 2c3666f44855
children b1530a6cce8c
comparison
equal deleted inserted replaced
21051:50fe6a0c6f1d 21052:de8880bbf2e1
26 26
27 import com.oracle.truffle.api.object.*; 27 import com.oracle.truffle.api.object.*;
28 import com.oracle.truffle.object.Locations.*; 28 import com.oracle.truffle.object.Locations.*;
29 29
30 /** 30 /**
31 * Property objects represent the mapping between low-level stores and high-level data. The simplest 31 * Property objects represent the mapping between property identifiers (keys) and storage locations.
32 * Property could be nothing more than a map of one index to one property's value, but abstracting 32 * Optionally, properties may have metadata attached to them.
33 * the interface allows for getter/setter methods, type-checked properties, and other such
34 * specialized and language-specific behavior. ECMAScript[8.6.1]
35 */ 33 */
36 public class PropertyImpl extends Property { 34 public class PropertyImpl extends Property {
37 private final Object key; 35 private final Object key;
38 private final Location location; 36 private final Location location;
39 private final int flags; 37 private final int flags;