Changeset 34607 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.cpp
- Timestamp:
- Jun 16, 2008, 4:28:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.cpp
r34581 r34607 180 180 , m_continueDepth(0) 181 181 , m_nextVar(-1) 182 , m_ propertyNames(&scopeChain.globalObject()->globalExec()->propertyNames())182 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) 183 183 , m_lastOpcodeID(op_end) 184 184 { … … 239 239 , m_continueDepth(0) 240 240 , m_nextVar(-1) 241 , m_ propertyNames(&scopeChain.globalObject()->globalExec()->propertyNames())241 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) 242 242 , m_lastOpcodeID(op_end) 243 243 { … … 254 254 for (size_t i = 0; i < varStack.size(); ++i) { 255 255 const Identifier& ident = varStack[i].first; 256 if (ident == m_propertyNames->arguments)256 if (ident == propertyNames().arguments) 257 257 continue; 258 258 … … 286 286 , m_continueDepth(0) 287 287 , m_nextVar(-1) 288 , m_ propertyNames(&scopeChain.globalObject()->globalExec()->propertyNames())288 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) 289 289 , m_lastOpcodeID(op_end) 290 290 { … … 317 317 RegisterID* CodeGenerator::registerForLocal(const Identifier& ident) 318 318 { 319 if (m_codeType == FunctionCode && ident == m_propertyNames->arguments)319 if (m_codeType == FunctionCode && ident == propertyNames().arguments) 320 320 m_codeBlock->needsFullScopeChain = true; 321 321 322 if (ident == m_propertyNames->thisIdentifier)322 if (ident == propertyNames().thisIdentifier) 323 323 return &m_thisRegister; 324 324 … … 346 346 bool CodeGenerator::isLocal(const Identifier& ident) 347 347 { 348 if (ident == m_propertyNames->thisIdentifier)348 if (ident == propertyNames().thisIdentifier) 349 349 return true; 350 350 … … 481 481 pair<IdentifierMap::iterator, bool> result = m_identifierMap.add(rep, m_codeBlock->identifiers.size()); 482 482 if (result.second) // new entry 483 m_codeBlock->identifiers.append( rep);483 m_codeBlock->identifiers.append(Identifier(m_globalData, rep)); 484 484 485 485 return result.first->second; … … 591 591 { 592 592 // Cases where we cannot optimise the lookup 593 if (property == m_propertyNames->arguments || !canOptimizeNonLocals()) {593 if (property == propertyNames().arguments || !canOptimizeNonLocals()) { 594 594 stackDepth = 0; 595 595 index = missingSymbolMarker();
Note:
See TracChangeset
for help on using the changeset viewer.