Changeset 80919 in webkit for trunk/Source/JavaScriptCore/runtime/JSValue.h
- Timestamp:
- Mar 11, 2011, 7:12:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSValue.h
r80751 r80919 53 53 enum PreferredPrimitiveType { NoPreference, PreferNumber, PreferString }; 54 54 55 55 56 #if USE(JSVALUE32_64) 56 57 typedef int64_t EncodedJSValue; … … 58 59 typedef void* EncodedJSValue; 59 60 #endif 61 62 union EncodedValueDescriptor { 63 EncodedJSValue asEncodedJSValue; 64 #if USE(JSVALUE32_64) 65 double asDouble; 66 #elif USE(JSVALUE64) 67 JSCell* ptr; 68 #endif 69 70 #if CPU(BIG_ENDIAN) 71 struct { 72 int32_t tag; 73 int32_t payload; 74 } asBits; 75 #else 76 struct { 77 int32_t payload; 78 int32_t tag; 79 } asBits; 80 #endif 81 }; 60 82 61 83 double nonInlineNaN(); … … 240 262 241 263 enum { LowestTag = DeletedValueTag }; 242 264 243 265 uint32_t tag() const; 244 266 int32_t payload() const; 245 267 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) 268 EncodedValueDescriptor u; 269 #elif USE(JSVALUE64) 262 270 JSCell* m_ptr; 263 #endif // USE(JSVALUE32_64)271 #endif 264 272 }; 265 273
Note:
See TracChangeset
for help on using the changeset viewer.