Ignore:
Timestamp:
May 2, 2008, 1:05:47 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Geoffrey Garen.

Get rid of static data in nodes.cpp (well, at least of non-debug one).

No measurable change on SunSpider.

  • kjs/InitializeThreading.cpp: (KJS::initializeThreadingOnce):
  • kjs/nodes.cpp: (KJS::newTrackedObjects): (KJS::trackedObjectExtraRefCounts): (KJS::initializeNodesThreading): (KJS::ParserRefCounted::ParserRefCounted): (KJS::ParserRefCounted::ref): (KJS::ParserRefCounted::deref): (KJS::ParserRefCounted::refcount): (KJS::ParserRefCounted::deleteNewObjects):
  • kjs/nodes.h: Made newTrackedObjects and trackedObjectExtraRefCounts per-thread.
File:
1 edited

Legend:

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

    r32808 r32822  
    3636#include "JSGlobalObject.h"
    3737#include "lexer.h"
     38#include "nodes.h"
    3839#include "Parser.h"
    3940#include "ustring.h"
     
    5960    JSGlobalObject::threadClassInfoHashTables();
    6061    JSGlobalObject::head();
     62    initializeNodesThreading();
    6163#endif
    6264}
Note: See TracChangeset for help on using the changeset viewer.