Changeset 251584 in webkit for trunk/Source/JavaScriptCore/interpreter/ProtoCallFrame.h
- Timestamp:
- Oct 24, 2019, 11:59:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/ProtoCallFrame.h
r250803 r251584 1 1 /* 2 * Copyright (C) 2013-201 8Apple Inc. All Rights Reserved.2 * Copyright (C) 2013-2019 Apple Inc. All Rights Reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 48 48 JSGlobalObject* globalObject; 49 49 50 void init(CodeBlock*, JSGlobalObject*, JSObject*, JSValue, int, JSValue* otherArgs = 0);50 inline void init(CodeBlock*, JSGlobalObject*, JSObject*, JSValue, int, JSValue* otherArgs = 0); 51 51 52 CodeBlock* codeBlock() const { return codeBlockValue.Register::codeBlock(); }53 void setCodeBlock(CodeBlock* codeBlock) { codeBlockValue = codeBlock; }52 inline CodeBlock* codeBlock() const; 53 inline void setCodeBlock(CodeBlock*); 54 54 55 JSObject* callee() const { return calleeValue.Register::object(); } 56 void setCallee(JSObject* callee) 57 { 58 calleeValue = callee; 59 } 55 inline JSObject* callee() const; 56 inline void setCallee(JSObject*); 60 57 void setGlobalObject(JSGlobalObject* object) 61 58 { … … 87 84 }; 88 85 89 inline void ProtoCallFrame::init(CodeBlock* codeBlock, JSGlobalObject* globalObject, JSObject* callee, JSValue thisValue, int argCountIncludingThis, JSValue* otherArgs)90 {91 this->args = otherArgs;92 this->setCodeBlock(codeBlock);93 this->setCallee(callee);94 this->setGlobalObject(globalObject);95 this->setArgumentCountIncludingThis(argCountIncludingThis);96 if (codeBlock && argCountIncludingThis < codeBlock->numParameters())97 this->hasArityMismatch = true;98 else99 this->hasArityMismatch = false;100 101 // Round up argCountIncludingThis to keep the stack frame size aligned.102 size_t paddedArgsCount = roundArgumentCountToAlignFrame(argCountIncludingThis);103 this->setPaddedArgCount(paddedArgsCount);104 this->clearCurrentVPC();105 this->setThisValue(thisValue);106 }107 108 86 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.