Ignore:
Timestamp:
Jun 19, 2008, 3:23:11 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin.

Get rid of some threadInstance calls.

  • kjs/JSGlobalObject.cpp: (KJS::JSGlobalObject::init):
  • kjs/Parser.cpp: (KJS::Parser::parse):
  • kjs/Shell.cpp: (jscmain):
File:
1 edited

Legend:

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

    r34659 r34673  
    129129    d()->debugger = 0;
    130130   
    131     d()->globalData = &JSGlobalData::threadInstance();
     131    d()->globalData = (Heap::heap(this) == JSGlobalData::sharedInstance().heap) ? &JSGlobalData::sharedInstance() : &JSGlobalData::threadInstance();
    132132
    133133    d()->globalExec.set(new ExecState(this, thisValue, d()->globalScopeChain.node()));
Note: See TracChangeset for help on using the changeset viewer.