diff options
Diffstat (limited to 'Source/JavaScriptCore/interpreter/CallFrame.cpp')
-rw-r--r-- | Source/JavaScriptCore/interpreter/CallFrame.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/interpreter/CallFrame.cpp b/Source/JavaScriptCore/interpreter/CallFrame.cpp index a5ffaee8d..cfbfb3e3a 100644 --- a/Source/JavaScriptCore/interpreter/CallFrame.cpp +++ b/Source/JavaScriptCore/interpreter/CallFrame.cpp @@ -181,6 +181,16 @@ CallFrame* CallFrame::trueCallerFrame() return machineCaller->trueCallFrame(returnPC())->removeHostCallFrameFlag(); } + +CodeBlock* CallFrame::someCodeBlockForPossiblyInlinedCode() +{ + if (!isInlineCallFrame()) + return codeBlock(); + + return jsCast<FunctionExecutable*>(inlineCallFrame()->executable.get())->baselineCodeBlockFor( + inlineCallFrame()->isCall ? CodeForCall : CodeForConstruct); +} + #endif Register* CallFrame::frameExtentInternal() |