Changeset 39184 in webkit for trunk/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Dec 10, 2008, 1:33:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.h
r39182 r39184 110 110 }; 111 111 112 #if ENABLE(JIT) 112 113 struct PC { 113 114 PC(void* nativePC, unsigned bytecodeIndex) … … 120 121 unsigned bytecodeIndex; 121 122 }; 122 123 #endif 123 124 124 125 // valueAtPosition helpers for the binaryChop algorithm below. … … 134 135 } 135 136 137 #if ENABLE(JIT) 136 138 inline void* getNativePC(PC* pc) 137 139 { 138 140 return pc->nativePC; 139 141 } 142 #endif 140 143 141 144 // Binary chop algorithm, calls valueAtPosition on pre-sorted elements in array, … … 255 258 } 256 259 260 #if ENABLE(JIT) 257 261 unsigned getBytecodeIndex(void* nativePC) 258 262 { 259 263 return binaryChop<PC, void*, getNativePC>(m_pcVector.begin(), m_pcVector.size(), nativePC)->bytecodeIndex; 260 264 } 265 #endif 261 266 262 267 Vector<Instruction>& instructions() { return m_instructions; }
Note:
See TracChangeset
for help on using the changeset viewer.