Ignore:
Timestamp:
Aug 20, 2008, 12:23:06 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Geoff Garen.

Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.

File:
1 edited

Legend:

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

    r35511 r35853  
    5555    class JSGlobalData : public RefCounted<JSGlobalData> {
    5656    public:
     57        static bool sharedInstanceExists();
     58        static JSGlobalData& sharedInstance();
     59
    5760        static PassRefPtr<JSGlobalData> create();
    5861        ~JSGlobalData();
     
    8386        JSGlobalObject* head;
    8487
     88        bool isSharedInstance;
     89
    8590    private:
    86         JSGlobalData();
     91        JSGlobalData(bool isShared = false);
     92
     93        static JSGlobalData*& sharedInstanceInternal();
    8794    };
    8895
Note: See TracChangeset for help on using the changeset viewer.