| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // ABSENT can never be stored in or returned from a descriptor's attributes | 51 // ABSENT can never be stored in or returned from a descriptor's attributes |
| 52 // bitfield. It is only used as a return value meaning the attributes of | 52 // bitfield. It is only used as a return value meaning the attributes of |
| 53 // a non-existent property. | 53 // a non-existent property. |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 | 56 |
| 57 namespace v8 { | 57 namespace v8 { |
| 58 namespace internal { | 58 namespace internal { |
| 59 | 59 |
| 60 class Smi; | 60 class Smi; |
| 61 template<class> class TypeImpl; | 61 class Type; |
| 62 struct HeapTypeConfig; | |
| 63 typedef TypeImpl<HeapTypeConfig> Type; | |
| 64 class TypeInfo; | 62 class TypeInfo; |
| 65 | 63 |
| 66 // Type of properties. | 64 // Type of properties. |
| 67 // Order of properties is significant. | 65 // Order of properties is significant. |
| 68 // Must fit in the BitField PropertyDetails::TypeField. | 66 // Must fit in the BitField PropertyDetails::TypeField. |
| 69 // A copy of this is in mirror-debugger.js. | 67 // A copy of this is in mirror-debugger.js. |
| 70 enum PropertyType { | 68 enum PropertyType { |
| 71 // Only in slow mode. | 69 // Only in slow mode. |
| 72 NORMAL = 0, | 70 NORMAL = 0, |
| 73 // Only in fast mode. | 71 // Only in fast mode. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 100 kNumRepresentations | 98 kNumRepresentations |
| 101 }; | 99 }; |
| 102 | 100 |
| 103 Representation() : kind_(kNone) { } | 101 Representation() : kind_(kNone) { } |
| 104 | 102 |
| 105 static Representation None() { return Representation(kNone); } | 103 static Representation None() { return Representation(kNone); } |
| 106 static Representation Tagged() { return Representation(kTagged); } | 104 static Representation Tagged() { return Representation(kTagged); } |
| 107 static Representation Integer8() { return Representation(kInteger8); } | 105 static Representation Integer8() { return Representation(kInteger8); } |
| 108 static Representation UInteger8() { return Representation(kUInteger8); } | 106 static Representation UInteger8() { return Representation(kUInteger8); } |
| 109 static Representation Integer16() { return Representation(kInteger16); } | 107 static Representation Integer16() { return Representation(kInteger16); } |
| 110 static Representation UInteger16() { return Representation(kUInteger16); } | 108 static Representation UInteger16() { |
| 109 return Representation(kUInteger16); |
| 110 } |
| 111 static Representation Smi() { return Representation(kSmi); } | 111 static Representation Smi() { return Representation(kSmi); } |
| 112 static Representation Integer32() { return Representation(kInteger32); } | 112 static Representation Integer32() { return Representation(kInteger32); } |
| 113 static Representation Double() { return Representation(kDouble); } | 113 static Representation Double() { return Representation(kDouble); } |
| 114 static Representation HeapObject() { return Representation(kHeapObject); } | 114 static Representation HeapObject() { return Representation(kHeapObject); } |
| 115 static Representation External() { return Representation(kExternal); } | 115 static Representation External() { return Representation(kExternal); } |
| 116 | 116 |
| 117 static Representation FromKind(Kind kind) { return Representation(kind); } | 117 static Representation FromKind(Kind kind) { return Representation(kind); } |
| 118 | 118 |
| 119 static Representation FromType(Handle<Type> type); | 119 static Representation FromType(Handle<Type> type); |
| 120 | 120 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 PropertyDetails(int value, PropertyAttributes attributes) { | 320 PropertyDetails(int value, PropertyAttributes attributes) { |
| 321 value_ = AttributesField::update(value, attributes); | 321 value_ = AttributesField::update(value, attributes); |
| 322 } | 322 } |
| 323 | 323 |
| 324 uint32_t value_; | 324 uint32_t value_; |
| 325 }; | 325 }; |
| 326 | 326 |
| 327 } } // namespace v8::internal | 327 } } // namespace v8::internal |
| 328 | 328 |
| 329 #endif // V8_PROPERTY_DETAILS_H_ | 329 #endif // V8_PROPERTY_DETAILS_H_ |
| OLD | NEW |