Changeset 59777 in webkit for trunk/JavaScriptCore/bytecode
- Timestamp:
- May 19, 2010, 11:28:54 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.h
r59742 r59777 110 110 } 111 111 112 unsigned bytecode Index;112 unsigned bytecodeOffset; 113 113 CodeLocationNearCall callReturnLocation; 114 114 CodeLocationDataLabelPtr hotPathBegin; … … 192 192 // the bytecode index of the corresponding bytecode operation. 193 193 // This is then used to look up the corresponding handler. 194 struct CallReturnOffsetToBytecode Index{195 CallReturnOffsetToBytecode Index(unsigned callReturnOffset, unsigned bytecodeIndex)194 struct CallReturnOffsetToBytecodeOffset { 195 CallReturnOffsetToBytecodeOffset(unsigned callReturnOffset, unsigned bytecodeOffset) 196 196 : callReturnOffset(callReturnOffset) 197 , bytecode Index(bytecodeIndex)197 , bytecodeOffset(bytecodeOffset) 198 198 { 199 199 } 200 200 201 201 unsigned callReturnOffset; 202 unsigned bytecode Index;202 unsigned bytecodeOffset; 203 203 }; 204 204 … … 220 220 } 221 221 222 inline unsigned getCallReturnOffset(CallReturnOffsetToBytecode Index* pc)222 inline unsigned getCallReturnOffset(CallReturnOffsetToBytecodeOffset* pc) 223 223 { 224 224 return pc->callReturnOffset; … … 268 268 269 269 #if ENABLE(JIT) 270 Vector<CallReturnOffsetToBytecode Index> m_callReturnIndexVector;270 Vector<CallReturnOffsetToBytecodeOffset> m_callReturnIndexVector; 271 271 #endif 272 272 }; … … 350 350 } 351 351 352 unsigned getBytecodeIndex(CallFrame* callFrame, ReturnAddressPtr returnAddress)352 unsigned bytecodeOffset(CallFrame* callFrame, ReturnAddressPtr returnAddress) 353 353 { 354 354 reparseForExceptionInfoIfNecessary(callFrame); 355 return binaryChop<CallReturnOffsetToBytecode Index, unsigned, getCallReturnOffset>(callReturnIndexVector().begin(), callReturnIndexVector().size(), getJITCode().offsetOf(returnAddress.value()))->bytecodeIndex;355 return binaryChop<CallReturnOffsetToBytecodeOffset, unsigned, getCallReturnOffset>(callReturnIndexVector().begin(), callReturnIndexVector().size(), getJITCode().offsetOf(returnAddress.value()))->bytecodeOffset; 356 356 } 357 357 … … 451 451 452 452 #if ENABLE(JIT) 453 Vector<CallReturnOffsetToBytecode Index>& callReturnIndexVector() { ASSERT(m_exceptionInfo); return m_exceptionInfo->m_callReturnIndexVector; }453 Vector<CallReturnOffsetToBytecodeOffset>& callReturnIndexVector() { ASSERT(m_exceptionInfo); return m_exceptionInfo->m_callReturnIndexVector; } 454 454 #endif 455 455
Note:
See TracChangeset
for help on using the changeset viewer.