Changeset 277758 in webkit for trunk/Source/JavaScriptCore/jit/JIT.cpp
- Timestamp:
- May 19, 2021, 3:30:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JIT.cpp
r277757 r277758 516 516 m_callLinkInfoIndex = 0; 517 517 518 FixedVector<RareCaseProfile> rareCaseProfiles;519 if (shouldEmitProfiling())520 rareCaseProfiles = FixedVector<RareCaseProfile>(m_bytecodeCountHavingSlowCase);521 522 518 unsigned bytecodeCountHavingSlowCase = 0; 523 519 for (Vector<SlowCaseEntry>::iterator iter = m_slowCases.begin(); iter != m_slowCases.end();) { … … 530 526 const Instruction* currentInstruction = m_codeBlock->instructions().at(m_bytecodeIndex).ptr(); 531 527 532 RareCaseProfile* rareCaseProfile = nullptr;533 if (shouldEmitProfiling())534 rareCaseProfile = &rareCaseProfiles.at(bytecodeCountHavingSlowCase);535 536 528 if (JITInternal::verbose) 537 529 dataLogLn("Baseline JIT emitting slow code for ", m_bytecodeIndex, " at offset ", (long)debugOffset()); … … 648 640 RELEASE_ASSERT_WITH_MESSAGE(firstTo.offset() == (iter - 1)->to.offset(), "Too many jumps linked in slow case codegen."); 649 641 650 if (shouldEmitProfiling())651 add32(TrustedImm32(1), AbsoluteAddress(&rareCaseProfile->m_counter));652 653 642 emitJumpSlowToHot(jump(), 0); 654 643 ++bytecodeCountHavingSlowCase; … … 663 652 RELEASE_ASSERT(m_privateBrandAccessIndex == m_privateBrandAccesses.size()); 664 653 RELEASE_ASSERT(m_callLinkInfoIndex == m_callCompilationInfo.size()); 665 666 if (shouldEmitProfiling())667 m_codeBlock->setRareCaseProfiles(WTFMove(rareCaseProfiles));668 654 669 655 #ifndef NDEBUG
Note:
See TracChangeset
for help on using the changeset viewer.