Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: src/api.cc

Issue 342054: Introduce a switch for the new snapshot code and switch... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/arm/assembler-arm.h » ('j') | src/mksnapshot.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | src/arm/assembler-arm.h » ('j') | src/mksnapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698