Revision: 7726
Author:   [email protected]
Date:     Fri Apr 29 05:43:24 2011
Log:      Fix Linux builds after r7724
http://code.google.com/p/v8/source/detail?r=7726

Modified:
 /branches/bleeding_edge/src/mksnapshot.cc

=======================================
--- /branches/bleeding_edge/src/mksnapshot.cc   Fri Apr 29 05:08:33 2011
+++ /branches/bleeding_edge/src/mksnapshot.cc   Fri Apr 29 05:43:24 2011
@@ -206,9 +206,15 @@
     int length = partial_sink_.Position();
     fprintf(fp_, "};\n\n");
     fprintf(fp_, "const int Snapshot::context_size_ = %d;\n",  length);
+#ifdef COMPRESS_STARTUP_DATA_BZ2
     fprintf(fp_,
             "const int Snapshot::context_raw_size_ = %d;\n",
             partial_sink_.raw_size());
+#else
+    fprintf(fp_,
+            "const int Snapshot::context_raw_size_ = "
+            "Snapshot::context_size_;\n");
+#endif
     fprintf(fp_, "const byte Snapshot::context_data_[] = {\n");
     partial_sink_.Print(fp_);
     fprintf(fp_, "};\n\n");

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to