Skip to content
  • mark.lam@apple.com's avatar
    Moved ErrorConstructor and NativeErrorConstructor helper functions into · b07f4c46
    mark.lam@apple.com authored
    the Interpreter class.
    https://bugs.webkit.org/show_bug.cgi?id=119576.
    
    Reviewed by Oliver Hunt.
    
    This change is needed to prepare for making Interpreter::getStackTrace()
    private. It does not change the behavior of the code, only the lexical
    scoping.
    
    * interpreter/Interpreter.h:
    - Added helper functions for ErrorConstructor and NativeErrorConstructor.
    * runtime/ErrorConstructor.cpp:
    (JSC::Interpreter::constructWithErrorConstructor):
    (JSC::ErrorConstructor::getConstructData):
    (JSC::Interpreter::callErrorConstructor):
    (JSC::ErrorConstructor::getCallData):
    - Don't want ErrorConstructor to call Interpreter::getStackTrace()
      directly. So, we moved the helper functions into the Interpreter
      class.
    * runtime/NativeErrorConstructor.cpp:
    (JSC::Interpreter::constructWithNativeErrorConstructor):
    (JSC::NativeErrorConstructor::getConstructData):
    (JSC::Interpreter::callNativeErrorConstructor):
    (JSC::NativeErrorConstructor::getCallData):
    - Don't want NativeErrorConstructor to call Interpreter::getStackTrace()
      directly. So, we moved the helper functions into the Interpreter
      class.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b07f4c46