Changeset 38230 in webkit for trunk/JavaScriptCore/bytecompiler
- Timestamp:
- Nov 7, 2008, 1:15:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.