Changeset 39182 in webkit for trunk/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Dec 10, 2008, 12:05:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.h
r39156 r39182 110 110 }; 111 111 112 struct PC { 113 PC(void* nativePC, unsigned bytecodeIndex) 114 : nativePC(nativePC) 115 , bytecodeIndex(bytecodeIndex) 116 { 117 } 118 119 void* nativePC; 120 unsigned bytecodeIndex; 121 }; 122 123 124 // valueAtPosition helpers for the binaryChop algorithm below. 125 112 126 inline void* getStructureStubInfoReturnLocation(StructureStubInfo* structureStubInfo) 113 127 { … … 118 132 { 119 133 return callLinkInfo->callReturnLocation; 134 } 135 136 inline void* getNativePC(PC* pc) 137 { 138 return pc->nativePC; 120 139 } 121 140 … … 236 255 } 237 256 257 unsigned getBytecodeIndex(void* nativePC) 258 { 259 return binaryChop<PC, void*, getNativePC>(m_pcVector.begin(), m_pcVector.size(), nativePC)->bytecodeIndex; 260 } 238 261 239 262 Vector<Instruction>& instructions() { return m_instructions; } … … 290 313 291 314 #if ENABLE(JIT) 292 HashMap<void*, unsigned>& jitReturnAddressVPCMap() { return m_jitReturnAddressVPCMap; }315 Vector<PC>& pcVector() { return m_pcVector; } 293 316 #endif 294 317 … … 391 414 392 415 #if ENABLE(JIT) 393 HashMap<void*, unsigned> m_jitReturnAddressVPCMap;416 Vector<PC> m_pcVector; 394 417 #endif 395 418
Note:
See TracChangeset
for help on using the changeset viewer.