Changeset 34319 in webkit for trunk/JavaScriptCore/VM/Machine.cpp
- Timestamp:
- Jun 2, 2008, 1:45:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/Machine.cpp
r34303 r34319 763 763 } 764 764 765 for (Vector<Identifier>::const_iterator iter = codeBlock->declaredVariableNames.begin(); iter != codeBlock->declaredVariableNames.end(); ++iter) { 766 Identifier ident = *iter; 767 765 const Node::VarStack& varStack = codeBlock->ownerNode->varStack(); 766 Node::VarStack::const_iterator varStackEnd = varStack.end(); 767 for (Node::VarStack::const_iterator it = varStack.begin(); it != varStackEnd; ++it) { 768 const Identifier& ident = (*it).first; 768 769 if (!variableObject->hasProperty(exec, ident)) 769 770 variableObject->put(exec, ident, jsUndefined()); 770 771 } 771 772 772 ASSERT(codeBlock->functions.size() == codeBlock->declaredFunctionNames.size()); 773 for (size_t i = 0; i < codeBlock->functions.size(); ++i) 774 variableObject->put(exec, codeBlock->declaredFunctionNames[i], codeBlock->functions[i]->makeFunction(exec, scopeChain)); 773 const Node::FunctionStack& functionStack = codeBlock->ownerNode->functionStack(); 774 Node::FunctionStack::const_iterator functionStackEnd = functionStack.end(); 775 for (Node::FunctionStack::const_iterator it = functionStack.begin(); it != functionStackEnd; ++it) 776 variableObject->put(exec, (*it)->m_ident, (*it)->makeFunction(exec, scopeChain)); 775 777 776 778 size_t oldSize = registerFile->size();
Note:
See TracChangeset
for help on using the changeset viewer.