diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-05-20 09:56:07 +0000 |
commit | 41386e9cb918eed93b3f13648cbef387e371e451 (patch) | |
tree | a97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp | |
parent | e15dd966d523731101f70ccf768bba12435a0208 (diff) | |
download | WebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz |
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp')
-rw-r--r-- | Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp b/Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp index eb80b2c23..a36001437 100644 --- a/Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp +++ b/Source/JavaScriptCore/interpreter/ProtoCallFrame.cpp @@ -27,25 +27,23 @@ #include "ProtoCallFrame.h" #include "CodeBlock.h" -#include "JSCInlines.h" -#include "StackAlignment.h" namespace JSC { -void ProtoCallFrame::init(CodeBlock* codeBlock, JSObject* callee, JSValue thisValue, int argCountIncludingThis, JSValue* otherArgs) +void ProtoCallFrame::init(CodeBlock* codeBlock, JSScope* scope, JSObject* callee, JSValue thisValue, int argCountIncludingThis, JSValue* otherArgs) { this->args = otherArgs; this->setCodeBlock(codeBlock); + this->setScope(scope); this->setCallee(callee); this->setArgumentCountIncludingThis(argCountIncludingThis); - if (codeBlock && argCountIncludingThis < codeBlock->numParameters()) - this->arityMissMatch = true; - else - this->arityMissMatch = false; - - // Round up argCountIncludingThis to keep the stack frame size aligned. - size_t paddedArgsCount = roundArgumentCountToAlignFrame(argCountIncludingThis); - this->setPaddedArgCount(paddedArgsCount); + size_t paddedArgsCount = argCountIncludingThis; + if (codeBlock) { + size_t numParameters = codeBlock->numParameters(); + if (paddedArgsCount < numParameters) + paddedArgsCount = numParameters; + } + this->setPaddedArgsCount(paddedArgsCount); this->clearCurrentVPC(); this->setThisValue(thisValue); } |