Lines Matching refs:varStack
254 const VarStack& varStack = programNode->varStack();
256 bool canOptimizeNewGlobals = symbolTable->size() + functionStack.size() + varStack.size() < registerFile->maxGlobals();
273 Vector<bool, 16> shouldCreateVar(varStack.size());
274 for (size_t i = 0; i < varStack.size(); ++i) {
275 if (newGlobals.contains(varStack[i].first->impl()) || globalObject->hasProperty(exec, *varStack[i].first)) {
280 newGlobals.add(varStack[i].first->impl());
295 for (size_t i = 0; i < varStack.size(); ++i) {
298 addGlobalVar(*varStack[i].first, varStack[i].second & DeclarationStacks::IsConstant);
309 for (size_t i = 0; i < varStack.size(); ++i) {
310 if (globalObject->symbolTableHasProperty(*varStack[i].first) || globalObject->hasProperty(exec, *varStack[i].first))
313 if (varStack[i].second & DeclarationStacks::IsConstant)
315 globalObject->putWithAttributes(exec, *varStack[i].first, jsUndefined(), attributes);
392 const DeclarationStacks::VarStack& varStack = functionBody->varStack();
411 for (size_t i = 0; i < varStack.size(); ++i) {
412 const Identifier& ident = *varStack[i].first;
414 addVar(ident, varStack[i].second & DeclarationStacks::IsConstant);
443 for (size_t i = 0; i < varStack.size(); ++i) {
444 const Identifier& ident = *varStack[i].first;
446 addVar(ident, varStack[i].second & DeclarationStacks::IsConstant);
525 const DeclarationStacks::VarStack& varStack = evalNode->varStack();
526 unsigned numVariables = varStack.size();
530 variables.append(*varStack[i].first);