Changeset 38230 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 7, 2008, 1:15:18 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r38229 r38230 1 2008-11-07 Cameron Zwarich <[email protected]> 2 3 Reviewed by Geoff Garen. 4 5 Bug 21801: REGRESSION (r37821): YUI date formatting JavaScript puts the letter 'd' in place of the day 6 <https://bugs.webkit.org/show_bug.cgi?id=21801> 7 8 Fix the constant register check in the 'typeof' optimization in 9 CodeGenerator, which was completely broken after r37821. 10 11 * bytecompiler/CodeGenerator.cpp: 12 (JSC::CodeGenerator::emitEqualityOp): 13 1 14 2008-11-07 Cameron Zwarich <[email protected]> 2 15 -
trunk/JavaScriptCore/bytecompiler/CodeGenerator.cpp
r38219 r38230 784 784 if (src1->index() == dstIndex 785 785 && src1->isTemporary() 786 && static_cast<unsigned>(src2->index()) < m_codeBlock->constantRegisters.size()787 && m_codeBlock->constantRegisters[src2->index() ].jsValue(m_scopeChain->globalObject()->globalExec())->isString()) {788 const UString& value = asString(m_codeBlock->constantRegisters[src2->index() ].jsValue(m_scopeChain->globalObject()->globalExec()))->value();786 && m_codeBlock->isConstant(src2->index()) 787 && m_codeBlock->constantRegisters[src2->index() - m_codeBlock->numVars].jsValue(m_scopeChain->globalObject()->globalExec())->isString()) { 788 const UString& value = asString(m_codeBlock->constantRegisters[src2->index() - m_codeBlock->numVars].jsValue(m_scopeChain->globalObject()->globalExec()))->value(); 789 789 if (value == "undefined") { 790 790 rewindUnaryOp();
Note:
See TracChangeset
for help on using the changeset viewer.