Changeset 153212 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrame.h
- Timestamp:
- Jul 24, 2013, 9:02:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r153211 r153212 117 117 class Location { 118 118 public: 119 enum Type { 120 BytecodeOffset = 0, 121 CodeOriginIndex = (1 << 0), 122 IsInlinedCode = (1 << 1), 119 static inline uint32_t decode(uint32_t bits); 120 121 static inline bool isBytecodeLocation(uint32_t bits); 122 #if USE(JSVALUE64) 123 static inline uint32_t encodeAsBytecodeOffset(uint32_t bits); 124 #else 125 static inline uint32_t encodeAsBytecodeInstruction(Instruction*); 126 #endif 127 128 static inline bool isCodeOriginIndex(uint32_t bits); 129 static inline uint32_t encodeAsCodeOriginIndex(uint32_t bits); 130 131 static inline bool isInlinedCode(uint32_t bits); 132 static inline uint32_t encodeAsInlinedCode(uint32_t bits); 133 134 private: 135 enum TypeTag { 136 BytecodeLocationTag = 0, 137 CodeOriginIndexTag = 1, 138 IsInlinedCodeTag = 2, 123 139 }; 124 140 125 static inline uint32_t encode(Type, uint32_t bits); 126 static inline uint32_t decode(uint32_t bits); 127 static inline bool isBytecodeOffset(uint32_t bits); 128 static inline bool isCodeOriginIndex(uint32_t bits); 129 static inline bool isInlinedCode(uint32_t bits); 130 131 private: 141 static inline uint32_t encode(TypeTag, uint32_t bits); 142 132 143 static const uint32_t s_mask = 0x3; 133 144 #if USE(JSVALUE64)
Note:
See TracChangeset
for help on using the changeset viewer.