Changeset 235786 in webkit for trunk/Source/JavaScriptCore/interpreter/ProtoCallFrame.h
- Timestamp:
- Sep 7, 2018, 10:29:04 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/ProtoCallFrame.h
r229373 r235786 26 26 #pragma once 27 27 28 #include "CodeBlock.h" 28 29 #include "Register.h" 30 #include "StackAlignment.h" 29 31 #include <wtf/ForbidHeapAllocation.h> 30 32 … … 74 76 }; 75 77 78 inline void ProtoCallFrame::init(CodeBlock* codeBlock, JSObject* callee, JSValue thisValue, int argCountIncludingThis, JSValue* otherArgs) 79 { 80 this->args = otherArgs; 81 this->setCodeBlock(codeBlock); 82 this->setCallee(callee); 83 this->setArgumentCountIncludingThis(argCountIncludingThis); 84 if (codeBlock && argCountIncludingThis < codeBlock->numParameters()) 85 this->hasArityMismatch = true; 86 else 87 this->hasArityMismatch = false; 88 89 // Round up argCountIncludingThis to keep the stack frame size aligned. 90 size_t paddedArgsCount = roundArgumentCountToAlignFrame(argCountIncludingThis); 91 this->setPaddedArgCount(paddedArgsCount); 92 this->clearCurrentVPC(); 93 this->setThisValue(thisValue); 94 } 95 76 96 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.