Changeset 34258 in webkit for trunk/JavaScriptCore/kjs/JSImmediate.h
- Timestamp:
- May 30, 2008, 2:10:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSImmediate.h
r34171 r34258 81 81 { 82 82 return (getTag(v) == UndefinedType); 83 } 84 85 static bool isNegative(const JSValue* v) 86 { 87 ASSERT(isNumber(v)); 88 return reinterpret_cast<uintptr_t>(v) & 0x80000000; 83 89 } 84 90 … … 119 125 } 120 126 127 static ALWAYS_INLINE JSValue* rightShiftImmediateNumbers(const JSValue* val, const JSValue* shift) 128 { 129 ASSERT(areBothImmediateNumbers(val, shift)); 130 return reinterpret_cast<JSValue*>((reinterpret_cast<intptr_t>(val) >> ((reinterpret_cast<uintptr_t>(shift) >> 2) & 0x1f)) | NumberType); 131 } 132 121 133 static ALWAYS_INLINE bool canDoFastAdditiveOperations(const JSValue* v) 122 134 {
Note:
See TracChangeset
for help on using the changeset viewer.