Changeset 107348 in webkit
- Timestamp:
- Feb 9, 2012, 7:48:54 PM (15 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
bytecompiler/BytecodeGenerator.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r107345 r107348 1 2012-02-09 Andy Wingo <wingo@igalia.com> 2 3 Eliminate dead code in BytecodeGenerator::resolve() 4 https://bugs.webkit.org/show_bug.cgi?id=78242 5 6 Reviewed by Gavin Barraclough. 7 8 * bytecompiler/BytecodeGenerator.cpp: 9 (JSC::BytecodeGenerator::resolve): 10 BytecodeGenerator::shouldOptimizeLocals() is only true for 11 FunctionCode, and thus cannot be true for GlobalCode. 12 1 13 2012-02-09 Andy Wingo <wingo@igalia.com> 2 14 -
trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r107345 r107348 1163 1163 1164 1164 // Cases where we cannot statically optimize the lookup. 1165 if (property == propertyNames().arguments || !canOptimizeNonLocals()) { 1166 if (shouldOptimizeLocals() && m_codeType == GlobalCode) { 1167 ScopeChainIterator iter = m_scopeChain->begin(); 1168 JSObject* globalObject = iter->get(); 1169 ASSERT((++iter) == m_scopeChain->end()); 1170 return ResolveResult::globalResolve(globalObject); 1171 } else 1172 return ResolveResult::dynamicResolve(0); 1173 } 1165 if (property == propertyNames().arguments || !canOptimizeNonLocals()) 1166 return ResolveResult::dynamicResolve(0); 1174 1167 1175 1168 ScopeChainIterator iter = m_scopeChain->begin();
Note:
See TracChangeset
for help on using the changeset viewer.