Changeset 173178 in webkit for trunk/Source/JavaScriptCore/interpreter
- Timestamp:
- Sep 2, 2014, 9:52:35 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore/interpreter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp
r163844 r173178 40 40 this->setCallee(callee); 41 41 this->setArgumentCountIncludingThis(argCountIncludingThis); 42 size_t paddedArgsCount = argCountIncludingThis; 43 if (codeBlock) { 44 size_t numParameters = codeBlock->numParameters(); 45 if (paddedArgsCount < numParameters) 46 paddedArgsCount = numParameters; 47 } 48 // Round up paddedArgsCount to keep the stack frame size aligned. 49 paddedArgsCount = roundArgumentCountToAlignFrame(paddedArgsCount); 42 if (codeBlock && argCountIncludingThis < codeBlock->numParameters()) 43 this->arityMissMatch = true; 44 else 45 this->arityMissMatch = false; 46 47 // Round up argCountIncludingThis to keep the stack frame size aligned. 48 size_t paddedArgsCount = roundArgumentCountToAlignFrame(argCountIncludingThis); 50 49 this->setPaddedArgCount(paddedArgsCount); 51 50 this->clearCurrentVPC(); -
trunk/Source/JavaScriptCore/interpreter/ProtoCallFrame.h
r167031 r173178 38 38 Register thisArg; 39 39 uint32_t paddedArgCount; 40 bool arityMissMatch; 40 41 JSValue *args; 41 42 … … 61 62 void setThisValue(JSValue value) { thisArg = value; } 62 63 64 bool needArityCheck() { return arityMissMatch; } 65 63 66 JSValue argument(size_t argumentIndex) 64 67 {
Note:
See TracChangeset
for help on using the changeset viewer.