]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/InitializeThreading.cpp
JavaScriptCore-1218.33.tar.gz
[apple/javascriptcore.git] / runtime / InitializeThreading.cpp
index 4c0e123a493bf68bcda2d8904a76e0bddde5a9da..1a6c845140c2397af482de71b13228d9b1f154a4 100644 (file)
 
 #include "ExecutableAllocator.h"
 #include "Heap.h"
+#include "HeapStatistics.h"
 #include "Options.h"
 #include "Identifier.h"
 #include "JSDateMath.h"
 #include "JSGlobalObject.h"
-#include "UString.h"
+#include "JSLock.h"
+#include "LLIntData.h"
 #include "WriteBarrier.h"
 #include <wtf/dtoa.h>
 #include <wtf/Threading.h>
@@ -53,14 +55,20 @@ static void initializeThreadingOnce()
 {
     WTF::double_conversion::initialize();
     WTF::initializeThreading();
-    Options::initializeOptions();
+    GlobalJSLock::initialize();
+    Options::initialize();
+    if (Options::recordGCPauseTimes())
+        HeapStatistics::initialize();
 #if ENABLE(WRITE_BARRIER_PROFILING)
     WriteBarrierCounters::initialize();
 #endif
 #if ENABLE(ASSEMBLER)
     ExecutableAllocator::initializeAllocator();
 #endif
-    RegisterFile::initializeThreading();
+    JSStack::initializeThreading();
+#if ENABLE(LLINT)
+    LLInt::initialize();
+#endif
 }
 
 void initializeThreading()