Changeset 153209 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeOrigin.h
- Timestamp:
- Jul 24, 2013, 9:02:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeOrigin.h
r153202 r153209 89 89 90 90 void dump(PrintStream&) const; 91 92 static inline bool isHandle(uint32_t bits) { return !!(bits & handleFlag); } 93 static inline uint32_t encodeHandle(uint32_t bits) 94 { 95 ASSERT(!isHandle(bits)); 96 return bits | handleFlag; 97 } 98 static inline uint32_t decodeHandle(uint32_t bits) 99 { 100 ASSERT(isHandle(bits)); 101 return bits & ~handleFlag; 102 } 103 104 private: 105 static const uint32_t handleFlag = (1 << 31); 91 106 }; 92 107
Note:
See TracChangeset
for help on using the changeset viewer.