Changeset 45138 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 24, 2009, 8:07:02 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r45130 r45138 1 2009-06-24 Sam Weinig <[email protected]> 2 3 Reviewed by Gavin Barraclough. 4 5 Make the opcode sampler work once again. 6 7 * jit/JIT.h: 8 (JSC::JIT::compileGetByIdProto): 9 (JSC::JIT::compileGetByIdSelfList): 10 (JSC::JIT::compileGetByIdProtoList): 11 (JSC::JIT::compileGetByIdChainList): 12 (JSC::JIT::compileGetByIdChain): 13 (JSC::JIT::compilePutByIdTransition): 14 (JSC::JIT::compileCTIMachineTrampolines): 15 (JSC::JIT::compilePatchGetArrayLength): 16 * jit/JITStubCall.h: 17 (JSC::JITStubCall::call): 18 1 19 2009-06-24 Zoltan Horvath <[email protected]> 2 20 -
trunk/JavaScriptCore/jit/JIT.h
r44889 r45138 343 343 { 344 344 JIT jit(globalData, codeBlock); 345 #if ENABLE(OPCODE_SAMPLING)346 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());347 #endif348 345 jit.privateCompileGetByIdProto(stubInfo, structure, prototypeStructure, cachedOffset, returnAddress, callFrame); 349 346 } … … 352 349 { 353 350 JIT jit(globalData, codeBlock); 354 #if ENABLE(OPCODE_SAMPLING)355 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());356 #endif357 351 jit.privateCompileGetByIdSelfList(stubInfo, polymorphicStructures, currentIndex, structure, cachedOffset); 358 352 } … … 360 354 { 361 355 JIT jit(globalData, codeBlock); 362 #if ENABLE(OPCODE_SAMPLING)363 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());364 #endif365 356 jit.privateCompileGetByIdProtoList(stubInfo, prototypeStructureList, currentIndex, structure, prototypeStructure, cachedOffset, callFrame); 366 357 } … … 368 359 { 369 360 JIT jit(globalData, codeBlock); 370 #if ENABLE(OPCODE_SAMPLING)371 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());372 #endif373 361 jit.privateCompileGetByIdChainList(stubInfo, prototypeStructureList, currentIndex, structure, chain, count, cachedOffset, callFrame); 374 362 } … … 377 365 { 378 366 JIT jit(globalData, codeBlock); 379 #if ENABLE(OPCODE_SAMPLING)380 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());381 #endif382 367 jit.privateCompileGetByIdChain(stubInfo, structure, chain, count, cachedOffset, returnAddress, callFrame); 383 368 } … … 386 371 { 387 372 JIT jit(globalData, codeBlock); 388 #if ENABLE(OPCODE_SAMPLING)389 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());390 #endif391 373 jit.privateCompilePutByIdTransition(stubInfo, oldStructure, newStructure, cachedOffset, chain, returnAddress); 392 374 } … … 395 377 { 396 378 JIT jit(globalData); 397 #if ENABLE(OPCODE_SAMPLING)398 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());399 #endif400 379 jit.privateCompileCTIMachineTrampolines(executablePool, globalData, ctiArrayLengthTrampoline, ctiStringLengthTrampoline, ctiVirtualCallPreLink, ctiVirtualCallLink, ctiVirtualCall, ctiNativeCallThunk); 401 380 } … … 408 387 { 409 388 JIT jit(globalData, codeBlock); 410 #if ENABLE(OPCODE_SAMPLING)411 jit->m_bytecodeIndex = jit->m_codeBlock->getCallReturnOffset(returnAddress.value());412 #endif413 389 return jit.privateCompilePatchGetArrayLength(returnAddress); 414 390 } -
trunk/JavaScriptCore/jit/JITStubCall.h
r44743 r45138 109 109 { 110 110 #if ENABLE(OPCODE_SAMPLING) 111 ASSERT(m_jit->m_bytecodeIndex != (unsigned)-1);112 m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, true);111 if (m_jit->m_bytecodeIndex != (unsigned)-1) 112 m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, true); 113 113 #endif 114 114 … … 118 118 119 119 #if ENABLE(OPCODE_SAMPLING) 120 m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, false); 120 if (m_jit->m_bytecodeIndex != (unsigned)-1) 121 m_jit->sampleInstruction(m_jit->m_codeBlock->instructions().begin() + m_jit->m_bytecodeIndex, false); 121 122 #endif 122 123
Note:
See TracChangeset
for help on using the changeset viewer.