Changeset 35652 in webkit for trunk/JavaScriptCore


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:
Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r35651 r35652  
     12008-08-09  Cameron Zwarich  <[email protected]>
     2
     3        Reviewed by Oliver.
     4
     5        Revision 35651, despite being a rather trivial change, introduced a
     6        large regression on the regexp-dna SunSpider test. This regression
     7        stemmed from an increase in the size of CodeBlock::dump(). There is
     8        no reason for this method (and several related methods) to be compiled
     9        in non-debug builds with the sampling tool disabled. This patch
     10        conditionally compiles them, reversing the regression on SunSpider.
     11
     12        * JavaScriptCore.exp:
     13        * VM/CodeBlock.cpp:
     14        * VM/CodeBlock.h:
     15        * VM/Machine.cpp:
     16
    1172008-08-08  Cameron Zwarich  <[email protected]>
    218
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r35644 r35652  
    182182__ZN3KJS7CStringaSERKS0_
    183183__ZN3KJS7JSArray4infoE
    184 __ZN3KJS7Machine13dumpCallFrameEPKNS_9CodeBlockEPNS_14ScopeChainNodeEPNS_12RegisterFileEPKNS_8RegisterE
    185184__ZN3KJS7Profile10restoreAllEv
    186185__ZN3KJS7Profile5focusEPKNS_11ProfileNodeE
  • trunk/JavaScriptCore/VM/CodeBlock.cpp

    r35651 r35652  
    3838namespace KJS {
    3939
     40#if !defined(NDEBUG) || ENABLE_SAMPLING_TOOL
     41
    4042static UString escapeQuotes(const UString& str)
    4143{
     
    703705}
    704706
     707#endif // !defined(NDEBUG) || ENABLE_SAMPLING_TOOL
     708
    705709void CodeBlock::mark()
    706710{
  • trunk/JavaScriptCore/VM/CodeBlock.h

    r35593 r35652  
    9393        }
    9494
     95#if !defined(NDEBUG) || ENABLE_SAMPLING_TOOL
    9596        void dump(ExecState*) const;
     97#endif
    9698        int expressionRangeForVPC(const Instruction*, int& divot, int& startOffset, int& endOffset);
    9799        int lineNumberForVPC(const Instruction* vPC);
     
    131133
    132134    private:
     135#if !defined(NDEBUG) || ENABLE_SAMPLING_TOOL
    133136        void dump(ExecState*, const Vector<Instruction>::const_iterator& begin, Vector<Instruction>::const_iterator&) const;
     137#endif
    134138    };
    135139
  • 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.