Skip to content
  • mark.lam@apple.com's avatar
    Converting StackIterator to a callback interface. · bce4c9ba
    mark.lam@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=120564.
    
    Reviewed by Filip Pizlo.
    
    Source/JavaScriptCore: 
    
    * API/JSContextRef.cpp:
    (BacktraceFunctor::BacktraceFunctor):
    (BacktraceFunctor::operator()):
    (JSContextCreateBacktrace):
    * interpreter/CallFrame.cpp:
    * interpreter/CallFrame.h:
    * interpreter/Interpreter.cpp:
    (JSC::DumpRegisterFunctor::DumpRegisterFunctor):
    (JSC::DumpRegisterFunctor::operator()):
    (JSC::Interpreter::dumpRegisters):
    (JSC::unwindCallFrame):
    (JSC::GetStackTraceFunctor::GetStackTraceFunctor):
    (JSC::GetStackTraceFunctor::operator()):
    (JSC::Interpreter::getStackTrace):
    (JSC::Interpreter::stackTraceAsString):
    (JSC::UnwindFunctor::UnwindFunctor):
    (JSC::UnwindFunctor::operator()):
    (JSC::Interpreter::unwind):
    * interpreter/Interpreter.h:
    * interpreter/StackIterator.cpp:
    (JSC::StackIterator::numberOfFrames):
    (JSC::StackIterator::gotoFrameAtIndex):
    (JSC::StackIterator::gotoNextFrameWithFilter):
    (JSC::StackIterator::resetIterator):
    (JSC::StackIterator::Frame::print):
    (debugPrintCallFrame):
    (DebugPrintStackFunctor::operator()):
    (debugPrintStack): Added for debugging convenience.
    * interpreter/StackIterator.h:
    (JSC::StackIterator::Frame::index):
    (JSC::StackIterator::iterate):
    * jsc.cpp:
    (FunctionJSCStackFunctor::FunctionJSCStackFunctor):
    (FunctionJSCStackFunctor::operator()):
    (functionJSCStack):
    * profiler/ProfileGenerator.cpp:
    (JSC::AddParentForConsoleStartFunctor::AddParentForConsoleStartFunctor):
    (JSC::AddParentForConsoleStartFunctor::foundParent):
    (JSC::AddParentForConsoleStartFunctor::operator()):
    (JSC::ProfileGenerator::addParentForConsoleStart):
    * runtime/JSFunction.cpp:
    (JSC::RetrieveArgumentsFunctor::RetrieveArgumentsFunctor):
    (JSC::RetrieveArgumentsFunctor::result):
    (JSC::RetrieveArgumentsFunctor::operator()):
    (JSC::retrieveArguments):
    (JSC::RetrieveCallerFunctionFunctor::RetrieveCallerFunctionFunctor):
    (JSC::RetrieveCallerFunctionFunctor::result):
    (JSC::RetrieveCallerFunctionFunctor::operator()):
    (JSC::retrieveCallerFunction):
    * runtime/JSGlobalObjectFunctions.cpp:
    (JSC::GlobalFuncProtoGetterFunctor::GlobalFuncProtoGetterFunctor):
    (JSC::GlobalFuncProtoGetterFunctor::result):
    (JSC::GlobalFuncProtoGetterFunctor::operator()):
    (JSC::globalFuncProtoGetter):
    (JSC::GlobalFuncProtoSetterFunctor::GlobalFuncProtoSetterFunctor):
    (JSC::GlobalFuncProtoSetterFunctor::allowsAccess):
    (JSC::GlobalFuncProtoSetterFunctor::operator()):
    (JSC::globalFuncProtoSetter):
    * runtime/ObjectConstructor.cpp:
    (JSC::ObjectConstructorGetPrototypeOfFunctor::ObjectConstructorGetPrototypeOfFunctor):
    (JSC::ObjectConstructorGetPrototypeOfFunctor::result):
    (JSC::ObjectConstructorGetPrototypeOfFunctor::operator()):
    (JSC::objectConstructorGetPrototypeOf):
    
    Source/WebCore: 
    
    No new tests.
    
    * bindings/js/JSXMLHttpRequestCustom.cpp:
    (WebCore::SendFunctor::SendFunctor):
    (WebCore::SendFunctor::hasViableFrame):
    (WebCore::SendFunctor::operator()):
    (WebCore::JSXMLHttpRequest::send):
    * bindings/js/ScriptCallStackFactory.cpp:
    (WebCore::CreateScriptCallStackFunctor::CreateScriptCallStackFunctor):
    (WebCore::CreateScriptCallStackFunctor::operator()):
    (WebCore::createScriptCallStack):
    (WebCore::CreateScriptCallStackForConsoleFunctor::CreateScriptCallStackForConsoleFunctor):
    (WebCore::CreateScriptCallStackForConsoleFunctor::operator()):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bce4c9ba