Ignore:
Timestamp:
Dec 2, 2007, 11:43:29 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

Reviewed by Eric Seidel.

Second step in refactoring JSGlobalObject: moved virtual functions from
Interpreter to JSGlobalObject.


Layout and JS tests pass. SunSpider reports a .7% speedup -- don't
believe his lies.

JavaScriptGlue:

Reviewed by Eric Seidel.

Updated to match the JavaScriptCore change to move virtual methods from
Interpreter to JSGlobalObject.


  • JSRun.cpp:
  • JSRun.h:
  • JSValueWrapper.cpp: (getThreadGlobalExecState):
  • JavaScriptGlue.cpp: (JSRunCopyGlobalObject): (JSRunEvaluate):

WebCore:

Reviewed by Eric Seidel.

Updated to match the JavaScriptCore change to move virtual methods from
Interpreter to JSGlobalObject.


Moved virtual ScriptInterpreter functions to Window.

WebKit/mac:

Reviewed by Eric Seidel.

Updated to match the JavaScriptCore change to move virtual methods from
Interpreter to JSGlobalObject.

  • WebView/WebFrame.mm: (-[WebFrame globalContext]): Use the toRef function instead of manually casting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSGlobalObject.h

    r28309 r28328  
    3535        JSGlobalObject(JSValue* proto) : JSObject(proto) { }
    3636
     37        Interpreter* interpreter() const { return m_interpreter.get(); }
     38        void setInterpreter(std::auto_ptr<Interpreter> i) { m_interpreter = i; }
     39
     40        virtual void mark();
     41
    3742        virtual bool isGlobalObject() const { return true; }
    3843
    39         virtual void mark()
    40         {
    41             JSObject::mark();
    42             m_interpreter->mark();
    43         }
     44        virtual ExecState* globalExec();
    4445
    45         Interpreter* interpreter() const { return m_interpreter.get(); }
    46         void setInterpreter(std::auto_ptr<Interpreter> i) { m_interpreter = i; }
     46        virtual bool shouldInterruptScript() const { return true; }
     47
     48        virtual bool isSafeScript(const JSGlobalObject*) { return true; }
    4749
    4850    private:
Note: See TracChangeset for help on using the changeset viewer.