Ignore:
Timestamp:
Apr 30, 2009, 4:55:11 PM (16 years ago)
Author:
[email protected]
Message:

2009-04-30 Gavin Barraclough <[email protected]>

Reviewed by Oliver Hunt.

OPCODE_SAMPLING without CODEBLOCK_SAMPLING is currently broken,
since SamplingTool::Sample::isNull() checks the m_codeBlock
member (which is always null without CODEBLOCK_SAMPLING).

Restructure the checks so make this work again.

  • bytecode/SamplingTool.cpp: (JSC::SamplingTool::doRun):
  • bytecode/SamplingTool.h: (JSC::SamplingTool::Sample::isNull):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/SamplingTool.h

    r43087 r43105  
    235235            }
    236236           
    237             bool isNull() { return !m_sample || !m_codeBlock; }
     237            bool isNull() { return !m_sample; }
    238238            CodeBlock* codeBlock() { return m_codeBlock; }
    239239            Instruction* vPC() { return reinterpret_cast<Instruction*>(m_sample & ~0x3); }
Note: See TracChangeset for help on using the changeset viewer.