 Chromium Code Reviews
 Chromium Code Reviews Issue 342054:
  Introduce a switch for the new snapshot code and switch...  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
    
  
    Issue 342054:
  Introduce a switch for the new snapshot code and switch...  (Closed) 
  Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/| Index: src/api.cc | 
| =================================================================== | 
| --- src/api.cc (revision 3179) | 
| +++ src/api.cc (working copy) | 
| @@ -2621,11 +2621,12 @@ | 
| if (i::V8::IsRunning()) return true; | 
| ENTER_V8; | 
| HandleScope scope; | 
| - if (i::Snapshot::Initialize()) { | 
| - return true; | 
| + if (i::FLAG_new_snapshot) { | 
| + if (i::Snapshot::Initialize2()) return true; | 
| } else { | 
| - return i::V8::Initialize(NULL); | 
| + if (i::Snapshot::Initialize()) return true; | 
| } | 
| + return i::V8::Initialize(NULL); | 
| } |