Changeset 43471 in webkit for trunk/JavaScriptCore/bytecompiler
- Timestamp:
- May 10, 2009, 3:32:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r43428 r43471 263 263 264 264 for (size_t i = 0; i < functionStack.size(); ++i) { 265 FuncDeclNode* funcDecl = functionStack[i] .get();265 FuncDeclNode* funcDecl = functionStack[i]; 266 266 globalObject->removeDirect(funcDecl->m_ident); // Make sure our new function is not shadowed by an old property. 267 267 emitNewFunction(addGlobalVar(funcDecl->m_ident, false), funcDecl); … … 279 279 } else { 280 280 for (size_t i = 0; i < functionStack.size(); ++i) { 281 FuncDeclNode* funcDecl = functionStack[i] .get();281 FuncDeclNode* funcDecl = functionStack[i]; 282 282 globalObject->putWithAttributes(exec, funcDecl->m_ident, funcDecl->makeFunction(exec, scopeChain.node()), DontDelete); 283 283 } … … 338 338 const DeclarationStacks::FunctionStack& functionStack = functionBody->functionStack(); 339 339 for (size_t i = 0; i < functionStack.size(); ++i) { 340 FuncDeclNode* funcDecl = functionStack[i] .get();340 FuncDeclNode* funcDecl = functionStack[i]; 341 341 const Identifier& ident = funcDecl->m_ident; 342 342 m_functions.add(ident.ustring().rep()); … … 1375 1375 Vector<RefPtr<RegisterID>, 16> argv; 1376 1376 argv.append(thisRegister); 1377 for (ArgumentListNode* n = argumentsNode->m_listNode .get(); n; n = n->m_next.get()) {1377 for (ArgumentListNode* n = argumentsNode->m_listNode; n; n = n->m_next) { 1378 1378 argv.append(newTemporary()); 1379 1379 // op_call requires the arguments to be a sequential range of registers … … 1498 1498 Vector<RefPtr<RegisterID>, 16> argv; 1499 1499 argv.append(newTemporary()); // reserve space for "this" 1500 for (ArgumentListNode* n = argumentsNode ? argumentsNode->m_listNode .get() : 0; n; n = n->m_next.get()) {1500 for (ArgumentListNode* n = argumentsNode ? argumentsNode->m_listNode : 0; n; n = n->m_next) { 1501 1501 argv.append(newTemporary()); 1502 1502 // op_construct requires the arguments to be a sequential range of registers
Note:
See TracChangeset
for help on using the changeset viewer.