• fpizlo@apple.com's avatar
    Get rid of IsInlinedCodeTag and its associated methods since it's unused · 71309443
    fpizlo@apple.com authored
    Reviewed by Sam Weinig.
    This was meant to be easy, but I kept wondering if it was safe to remove the
    inline call frame check in Arguments::tearOff(). The check was clearly dead
    since the bit wasn't being set anywhere.
    It turns out that the unwindCallFrame() function was relying on tearOff()
    doing the right thing for inlined code, but it wasn't even passing it an
    inline call frame. I fixed this by having unwindCallFrame() inlining check,
    while also making sure that the code uses the right operand index for the
    arguments register.
    * interpreter/CallFrame.h:
    * interpreter/CallFrameInlines.h:
    * interpreter/Interpreter.cpp:
    * interpreter/StackVisitor.cpp:
    * interpreter/StackVisitor.h:
    * runtime/Arguments.cpp:
    Reviewed by Sam Weinig.
    * js/dfg-inline-arguments-capture-throw-exception-expected.txt: Added.
    * js/dfg-inline-arguments-capture-throw-exception.html: Added.
    * js/script-tests/dfg-inline-arguments-capture-throw-exception.js: Added.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156229 268f45cc-cd09-0410-ab3c-d52691b4dbfc