Changeset 47620 in webkit for trunk/JavaScriptCore/runtime/Arguments.h
- Timestamp:
- Aug 20, 2009, 9:21:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Arguments.h
r47412 r47620 116 116 { 117 117 function = callFrame->callee(); 118 119 CodeBlock* codeBlock = &function->executable()->generatedBytecode(); 120 int numParameters = codeBlock->m_numParameters; 118 119 int numParameters = function->executable()->parameterCount(); 121 120 argc = callFrame->argumentCount(); 122 121 123 122 if (argc <= numParameters) 124 argv = callFrame->registers() - RegisterFile::CallFrameHeaderSize - numParameters + 1; // + 1 to skip "this"123 argv = callFrame->registers() - RegisterFile::CallFrameHeaderSize - numParameters; 125 124 else 126 argv = callFrame->registers() - RegisterFile::CallFrameHeaderSize - numParameters - argc + 1; // + 1 to skip "this"125 argv = callFrame->registers() - RegisterFile::CallFrameHeaderSize - numParameters - argc; 127 126 128 127 argc -= 1; // - 1 to skip "this" 129 firstParameterIndex = -RegisterFile::CallFrameHeaderSize - numParameters + 1; // + 1 to skip "this"128 firstParameterIndex = -RegisterFile::CallFrameHeaderSize - numParameters; 130 129 } 131 130
Note:
See TracChangeset
for help on using the changeset viewer.