Changeset 35652 in webkit for trunk/JavaScriptCore/VM/Machine.cpp


Ignore:
Timestamp:
Aug 9, 2008, 4:00:38 AM (17 years ago)
Author:
[email protected]
Message:

2008-08-09 Cameron Zwarich <[email protected]>

Reviewed by Oliver.

Revision 35651, despite being a rather trivial change, introduced a
large regression on the regexp-dna SunSpider test. This regression
stemmed from an increase in the size of CodeBlock::dump(). There is
no reason for this method (and several related methods) to be compiled
in non-debug builds with the sampling tool disabled. This patch
conditionally compiles them, reversing the regression on SunSpider.

  • JavaScriptCore.exp:
  • VM/CodeBlock.cpp:
  • VM/CodeBlock.h:
  • VM/Machine.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.cpp

    r35639 r35652  
    550550}
    551551
     552#ifndef NDEBUG
     553
    552554void Machine::dumpCallFrame(const CodeBlock* codeBlock, ScopeChainNode* scopeChain, RegisterFile* registerFile, const Register* r)
    553555{
     
    621623}
    622624
     625#endif
     626
     627#if !defined(NDEBUG) || HAVE(SAMPLING_TOOL)
     628
    623629bool Machine::isOpcode(Opcode opcode)
    624630{
     
    631637#endif
    632638}
     639
     640#endif
    633641
    634642NEVER_INLINE bool Machine::unwindCallFrame(ExecState* exec, JSValue* exceptionValue, const Instruction*& vPC, CodeBlock*& codeBlock, ScopeChainNode*& scopeChain, Register*& r)
Note: See TracChangeset for help on using the changeset viewer.