Changeset 63515 in webkit for trunk/JavaScriptCore/bytecompiler
- Timestamp:
- Jul 15, 2010, 9:58:30 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/bytecompiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r63244 r63515 2052 2052 { 2053 2053 int parameterCount = m_parameters.size(); // includes 'this' 2054 int index = registerFor(ident)->index() + RegisterFile::CallFrameHeaderSize + parameterCount; 2054 RegisterID* registerID = registerFor(ident); 2055 if (!registerID) 2056 return 0; 2057 int index = registerID->index() + RegisterFile::CallFrameHeaderSize + parameterCount; 2055 2058 return (index > 0 && index < parameterCount) ? index : 0; 2056 2059 } -
trunk/JavaScriptCore/bytecompiler/NodesCodegen.cpp
r63244 r63515 2037 2037 2038 2038 // If there is a return statment, and it is the only statement in the function, check if this is a numeric compare. 2039 if ( returnNode &&static_cast<BlockNode*>(singleStatement)->singleStatement()) {2039 if (static_cast<BlockNode*>(singleStatement)->singleStatement()) { 2040 2040 ExpressionNode* returnValueExpression = returnNode->value(); 2041 2041 if (returnValueExpression && returnValueExpression->isSubtract()) {
Note:
See TracChangeset
for help on using the changeset viewer.