Lines Matching defs:representation
90 class Representation {
107 Representation() : kind_(kNone) { }
109 static Representation None() { return Representation(kNone); }
110 static Representation Tagged() { return Representation(kTagged); }
111 static Representation Integer8() { return Representation(kInteger8); }
112 static Representation UInteger8() { return Representation(kUInteger8); }
113 static Representation Integer16() { return Representation(kInteger16); }
114 static Representation UInteger16() { return Representation(kUInteger16); }
115 static Representation Smi() { return Representation(kSmi); }
116 static Representation Integer32() { return Representation(kInteger32); }
117 static Representation Double() { return Representation(kDouble); }
118 static Representation HeapObject() { return Representation(kHeapObject); }
119 static Representation External() { return Representation(kExternal); }
121 static Representation FromKind(Kind kind) { return Representation(kind); }
123 bool Equals(const Representation& other) const {
127 bool IsCompatibleForLoad(const Representation& other) const {
132 bool IsCompatibleForStore(const Representation& other) const {
136 bool is_more_general_than(const Representation& other) const {
149 bool fits_into(const Representation& other) const {
153 Representation generalize(Representation other) {
156 return Representation::Tagged();
195 explicit Representation(Kind k) : kind_(k) { }
251 Representation representation,
255 | RepresentationField::encode(EncodeRepresentation(representation))
260 PropertyLocation location, Representation representation,
264 RepresentationField::encode(EncodeRepresentation(representation)) |
290 PropertyDetails CopyWithRepresentation(Representation representation) const {
291 return PropertyDetails(value_, representation);
303 static uint8_t EncodeRepresentation(Representation representation) {
304 return representation.kind();
307 static Representation DecodeRepresentation(uint32_t bits) {
308 return Representation::FromKind(static_cast<Representation::Kind>(bits));
324 Representation representation() const {
385 PropertyDetails(int value, Representation representation) {
387 value, EncodeRepresentation(representation));