Changeset 80938 in webkit for trunk/Source/JavaScriptCore/runtime/JSValue.h
- Timestamp:
- Mar 12, 2011, 7:54:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSValue.h
r80919 r80938 53 53 enum PreferredPrimitiveType { NoPreference, PreferNumber, PreferString }; 54 54 55 56 55 #if USE(JSVALUE32_64) 57 56 typedef int64_t EncodedJSValue; … … 59 58 typedef void* EncodedJSValue; 60 59 #endif 61 62 union EncodedValueDescriptor {63 EncodedJSValue asEncodedJSValue;64 #if USE(JSVALUE32_64)65 double asDouble;66 #elif USE(JSVALUE64)67 JSCell* ptr;68 #endif69 70 #if CPU(BIG_ENDIAN)71 struct {72 int32_t tag;73 int32_t payload;74 } asBits;75 #else76 struct {77 int32_t payload;78 int32_t tag;79 } asBits;80 #endif81 };82 60 83 61 double nonInlineNaN(); … … 262 240 263 241 enum { LowestTag = DeletedValueTag }; 264 242 265 243 uint32_t tag() const; 266 244 int32_t payload() const; 267 245 268 EncodedValueDescriptor u; 269 #elif USE(JSVALUE64) 246 union { 247 EncodedJSValue asEncodedJSValue; 248 double asDouble; 249 #if CPU(BIG_ENDIAN) 250 struct { 251 int32_t tag; 252 int32_t payload; 253 } asBits; 254 #else 255 struct { 256 int32_t payload; 257 int32_t tag; 258 } asBits; 259 #endif 260 } u; 261 #else // USE(JSVALUE32_64) 270 262 JSCell* m_ptr; 271 #endif 263 #endif // USE(JSVALUE32_64) 272 264 }; 273 265
Note:
See TracChangeset
for help on using the changeset viewer.