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/testkjs.cpp

    r28309 r28328  
    229229
    230230  // add debug() function
    231   global->put(interp->globalExec(), "debug", new TestFunctionImp(TestFunctionImp::Debug, 1));
     231  global->put(global->globalExec(), "debug", new TestFunctionImp(TestFunctionImp::Debug, 1));
    232232  // add "print" for compatibility with the mozilla js shell
    233   global->put(interp->globalExec(), "print", new TestFunctionImp(TestFunctionImp::Print, 1));
     233  global->put(global->globalExec(), "print", new TestFunctionImp(TestFunctionImp::Print, 1));
    234234  // add "quit" for compatibility with the mozilla js shell
    235   global->put(interp->globalExec(), "quit", new TestFunctionImp(TestFunctionImp::Quit, 0));
     235  global->put(global->globalExec(), "quit", new TestFunctionImp(TestFunctionImp::Quit, 0));
    236236  // add "gc" for compatibility with the mozilla js shell
    237   global->put(interp->globalExec(), "gc", new TestFunctionImp(TestFunctionImp::GC, 0));
     237  global->put(global->globalExec(), "gc", new TestFunctionImp(TestFunctionImp::GC, 0));
    238238  // add "version" for compatibility with the mozilla js shell
    239   global->put(interp->globalExec(), "version", new TestFunctionImp(TestFunctionImp::Version, 1));
    240   global->put(interp->globalExec(), "run", new TestFunctionImp(TestFunctionImp::Run, 1));
    241   global->put(interp->globalExec(), "load", new TestFunctionImp(TestFunctionImp::Load, 1));
     239  global->put(global->globalExec(), "version", new TestFunctionImp(TestFunctionImp::Version, 1));
     240  global->put(global->globalExec(), "run", new TestFunctionImp(TestFunctionImp::Run, 1));
     241  global->put(global->globalExec(), "load", new TestFunctionImp(TestFunctionImp::Load, 1));
    242242
    243243  Interpreter::setShouldPrintExceptions(true);
Note: See TracChangeset for help on using the changeset viewer.