Changeset 63244 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- Jul 13, 2010, 1:34:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r62896 r63244 153 153 if ((m_codeType == FunctionCode && !m_codeBlock->needsFullScopeChain() && !m_codeBlock->usesArguments()) || m_codeType == EvalCode) 154 154 symbolTable().clear(); 155 156 m_codeBlock->setIsNumericCompareFunction(instructions() == m_globalData->numericCompareFunction(m_scopeChain->globalObject()->globalExec()));157 155 158 156 #if !ENABLE(OPCODE_SAMPLING) … … 2046 2044 } 2047 2045 2046 void BytecodeGenerator::setIsNumericCompareFunction(bool isNumericCompareFunction) 2047 { 2048 m_codeBlock->setIsNumericCompareFunction(isNumericCompareFunction); 2049 } 2050 2051 int BytecodeGenerator::argumentNumberFor(const Identifier& ident) 2052 { 2053 int parameterCount = m_parameters.size(); // includes 'this' 2054 int index = registerFor(ident)->index() + RegisterFile::CallFrameHeaderSize + parameterCount; 2055 return (index > 0 && index < parameterCount) ? index : 0; 2056 } 2057 2048 2058 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.