Changeset 34265 in webkit for trunk/JavaScriptCore/kjs/JSImmediate.h
- Timestamp:
- May 30, 2008, 1:10:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSImmediate.h
r34258 r34265 168 168 static JSObject* toObject(const JSValue*, ExecState*); 169 169 static UString toString(const JSValue*); 170 static uint32_t toTruncatedUInt32(const JSValue*); 170 171 static JSType type(const JSValue*); 171 172 … … 220 221 uintptr_t bits = unTag(v); 221 222 return (bits != 0) & (JSImmediate::getTag(v) != UndefinedType); 223 } 224 225 ALWAYS_INLINE uint32_t JSImmediate::toTruncatedUInt32(const JSValue* v) 226 { 227 ASSERT(isImmediate(v)); 228 return static_cast<uint32_t>(reinterpret_cast<intptr_t>(v) >> 2); 222 229 } 223 230
Note:
See TracChangeset
for help on using the changeset viewer.