Chromium Code Reviews| Index: src/isolate.cc |
| =================================================================== |
| --- src/isolate.cc (revision 7006) |
| +++ src/isolate.cc (working copy) |
| @@ -177,10 +177,15 @@ |
| Isolate::ThreadDataTable* Isolate::thread_data_table_ = NULL; |
| Isolate::ThreadId Isolate::highest_thread_id_ = 0; |
| +void Isolate::RunStaticInitializers() { |
| + LAllocator::Setup(); |
| +} |
| + |
| class IsolateInitializer { |
| public: |
| IsolateInitializer() { |
| Isolate::EnsureDefaultIsolate(); |
| + Isolate::RunStaticInitializers(); |
|
Vitaly Repeshko
2011/03/02 18:27:27
Consider doing this before the default isolate is
|
| } |
| }; |
| @@ -712,7 +717,6 @@ |
| OProfileAgent::Initialize(); |
| deoptimizer_data_ = new DeoptimizerData; |
| - LAllocator::Setup(); |
| runtime_profiler_ = new RuntimeProfiler(this); |
| runtime_profiler_->Setup(); |