Changeset 190589 in webkit for trunk/Source/JavaScriptCore/bytecode/InlineCallFrame.h
- Timestamp:
- Oct 5, 2015, 4:31:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/InlineCallFrame.h
r190546 r190589 30 30 #include "CodeBlockHash.h" 31 31 #include "CodeOrigin.h" 32 #include "Executable.h"33 32 #include "ValueRecovery.h" 34 33 #include "WriteBarrier.h" … … 43 42 struct InlineCallFrame; 44 43 class ExecState; 45 class ScriptExecutable;46 44 class JSFunction; 47 45 … … 175 173 176 174 Vector<ValueRecovery> arguments; // Includes 'this'. 177 WriteBarrier< ScriptExecutable> executable;175 WriteBarrier<CodeBlock> baselineCodeBlock; 178 176 ValueRecovery calleeRecovery; 179 177 CodeOrigin directCaller; … … 210 208 CString hashAsStringIfPossible() const; 211 209 212 CodeBlock* baselineCodeBlock() const;213 214 210 void setStackOffset(signed offset) 215 211 { … … 220 216 ptrdiff_t callerFrameOffset() const { return stackOffset * sizeof(Register) + CallFrame::callerFrameOffset(); } 221 217 ptrdiff_t returnPCOffset() const { return stackOffset * sizeof(Register) + CallFrame::returnPCOffset(); } 218 219 bool isStrictMode() const { return baselineCodeBlock->isStrictMode(); } 222 220 223 221 void dumpBriefFunctionInformation(PrintStream&) const; … … 232 230 { 233 231 RELEASE_ASSERT(inlineCallFrame); 234 ScriptExecutable* executable = inlineCallFrame->executable.get(); 235 RELEASE_ASSERT(executable->structure()->classInfo() == FunctionExecutable::info()); 236 return static_cast<FunctionExecutable*>(executable)->baselineCodeBlockFor(inlineCallFrame->specializationKind()); 232 return inlineCallFrame->baselineCodeBlock.get(); 237 233 } 238 234
Note:
See TracChangeset
for help on using the changeset viewer.