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

Unified Diff: test/cctest/test-serialize.cc

Issue 1935: New static flags system (Closed)
Patch Set: Merge, again. Created 12 years, 3 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 | « test/cctest/test-mark-compact.cc ('k') | tools/v8.xcodeproj/project.pbxproj » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-serialize.cc
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc
index 3072664812e1ed60cecd918ed8e1fbd7c54e1e99..7fc38a802e1174542041ed669ed7ecc7d09de123 100644
--- a/test/cctest/test-serialize.cc
+++ b/test/cctest/test-serialize.cc
@@ -40,21 +40,8 @@
#include "snapshot.h"
#include "cctest.h"
-namespace v8 { namespace internal {
-
-#ifdef WIN32
-DEFINE_string(serialization_file, "C:\\Windows\\Temp\\serdes",
- "file in which to serialize heap");
-#else
-DEFINE_string(serialization_file, "/tmp/serdes",
- "file in which to serialize heap");
-#endif
-DECLARE_bool(debug_serialization);
-}} // namespace v8::internal
-
using namespace v8::internal;
-
static int local_counters[256];
static int counter_count = 0;
static std::map<std::wstring, int> counter_table;
@@ -174,7 +161,7 @@ static void Serialize() {
v8::Persistent<v8::Context> env = v8::Context::New(&extensions);
env->Enter();
- Snapshot::WriteToFile(FLAG_serialization_file);
+ Snapshot::WriteToFile(FLAG_testing_serialization_file);
}
@@ -218,7 +205,7 @@ static void Deserialize() {
#ifdef DEBUG
FLAG_debug_serialization = true;
#endif
- CHECK(Snapshot::Initialize(FLAG_serialization_file));
+ CHECK(Snapshot::Initialize(FLAG_testing_serialization_file));
}
« no previous file with comments | « test/cctest/test-mark-compact.cc ('k') | tools/v8.xcodeproj/project.pbxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698