Ignore:
Timestamp:
Apr 20, 2012, 5:12:04 PM (13 years ago)
Author:
[email protected]
Message:

Add an ability to find the extent of a callframe
https://bugs.webkit.org/show_bug.cgi?id=84513

Reviewed by Filip Pizlo.

Add a function to get the extent of a callframe and
use that function for a new assertion to make sure the
RegisterFile makes sense using that information.

  • interpreter/CallFrame.cpp:

(JSC::CallFrame::frameExtentInternal):
(JSC):

  • interpreter/CallFrame.h:

(JSC::ExecState::frameExtent):
(ExecState):

  • interpreter/Interpreter.cpp:

(JSC::Interpreter::executeCall):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/CallFrame.h

    r108444 r114803  
    126126#endif
    127127
     128        Register* frameExtent()
     129        {
     130            if (!codeBlock())
     131                return registers();
     132            return frameExtentInternal();
     133        }
     134   
     135        Register* frameExtentInternal();
     136   
    128137#if ENABLE(DFG_JIT)
    129138        InlineCallFrame* inlineCallFrame() const { return this[RegisterFile::ReturnPC].asInlineCallFrame(); }
Note: See TracChangeset for help on using the changeset viewer.