Ignore:
Timestamp:
Aug 8, 2013, 9:38:31 AM (12 years ago)
Author:
[email protected]
Message:

Moved ErrorConstructor and NativeErrorConstructor helper functions into
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.
File:
1 edited

Legend:

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

    r153457 r153823  
    223223        JSString* stackTraceAsString(ExecState*, Vector<StackFrame>);
    224224
     225        static EncodedJSValue JSC_HOST_CALL constructWithErrorConstructor(ExecState*);
     226        static EncodedJSValue JSC_HOST_CALL callErrorConstructor(ExecState*);
     227        static EncodedJSValue JSC_HOST_CALL constructWithNativeErrorConstructor(ExecState*);
     228        static EncodedJSValue JSC_HOST_CALL callNativeErrorConstructor(ExecState*);
     229
    225230        void dumpSampleData(ExecState* exec);
    226231        void startSampling();
Note: See TracChangeset for help on using the changeset viewer.