Changeset 35652 in webkit for trunk/JavaScriptCore
- Timestamp:
- Aug 9, 2008, 4:00:38 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r35651 r35652 1 2008-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 1 17 2008-08-08 Cameron Zwarich <[email protected]> 2 18 -
trunk/JavaScriptCore/JavaScriptCore.exp
r35644 r35652 182 182 __ZN3KJS7CStringaSERKS0_ 183 183 __ZN3KJS7JSArray4infoE 184 __ZN3KJS7Machine13dumpCallFrameEPKNS_9CodeBlockEPNS_14ScopeChainNodeEPNS_12RegisterFileEPKNS_8RegisterE185 184 __ZN3KJS7Profile10restoreAllEv 186 185 __ZN3KJS7Profile5focusEPKNS_11ProfileNodeE -
trunk/JavaScriptCore/VM/CodeBlock.cpp
r35651 r35652 38 38 namespace KJS { 39 39 40 #if !defined(NDEBUG) || ENABLE_SAMPLING_TOOL 41 40 42 static UString escapeQuotes(const UString& str) 41 43 { … … 703 705 } 704 706 707 #endif // !defined(NDEBUG) || ENABLE_SAMPLING_TOOL 708 705 709 void CodeBlock::mark() 706 710 { -
trunk/JavaScriptCore/VM/CodeBlock.h
r35593 r35652 93 93 } 94 94 95 #if !defined(NDEBUG) || ENABLE_SAMPLING_TOOL 95 96 void dump(ExecState*) const; 97 #endif 96 98 int expressionRangeForVPC(const Instruction*, int& divot, int& startOffset, int& endOffset); 97 99 int lineNumberForVPC(const Instruction* vPC); … … 131 133 132 134 private: 135 #if !defined(NDEBUG) || ENABLE_SAMPLING_TOOL 133 136 void dump(ExecState*, const Vector<Instruction>::const_iterator& begin, Vector<Instruction>::const_iterator&) const; 137 #endif 134 138 }; 135 139 -
trunk/JavaScriptCore/VM/Machine.cpp
r35639 r35652 550 550 } 551 551 552 #ifndef NDEBUG 553 552 554 void Machine::dumpCallFrame(const CodeBlock* codeBlock, ScopeChainNode* scopeChain, RegisterFile* registerFile, const Register* r) 553 555 { … … 621 623 } 622 624 625 #endif 626 627 #if !defined(NDEBUG) || HAVE(SAMPLING_TOOL) 628 623 629 bool Machine::isOpcode(Opcode opcode) 624 630 { … … 631 637 #endif 632 638 } 639 640 #endif 633 641 634 642 NEVER_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.