 Chromium Code Reviews
 Chromium Code Reviews Issue 9976003:
  Minimize uses of lazy initialization by adding explicit initialization functions.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 9976003:
  Minimize uses of lazy initialization by adding explicit initialization functions.  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge| Index: src/v8.cc | 
| diff --git a/src/v8.cc b/src/v8.cc | 
| index d9351dcbcaff8ccecc0065cf4fe9556883962703..45036c83f5decc5028b8159ccbd6b1280c1aaeef 100644 | 
| --- a/src/v8.cc | 
| +++ b/src/v8.cc | 
| @@ -27,11 +27,13 @@ | 
| #include "v8.h" | 
| +#include "assembler.h" | 
| #include "isolate.h" | 
| #include "elements.h" | 
| #include "bootstrapper.h" | 
| #include "debug.h" | 
| #include "deoptimizer.h" | 
| +#include "frames.h" | 
| #include "heap-profiler.h" | 
| #include "hydrogen.h" | 
| #include "lithium-allocator.h" | 
| @@ -262,7 +264,7 @@ void V8::InitializeOncePerProcessImpl() { | 
| OS::PostSetUp(); | 
| - RuntimeProfiler::GlobalSetup(); | 
| + RuntimeProfiler::GlobalSetUp(); | 
| 
Philippe
2012/04/05 11:30:18
For this one, we have to keep it as GlobalSetUp()
 | 
| ElementsAccessor::InitializeOncePerProcess(); | 
| @@ -273,6 +275,9 @@ void V8::InitializeOncePerProcessImpl() { | 
| } | 
| LOperand::SetUpCaches(); | 
| + SetUpJSCallerSavedCodeData(); | 
| + SamplerRegistry::SetUp(); | 
| + ExternalReference::SetUp(); | 
| } | 
| void V8::InitializeOncePerProcess() { |