Revision: 3144
Author: [email protected]
Date: Tue Oct 27 06:19:14 2009
Log: Start using snapshot VM configuration in internal benchmark
graphing tool.  Fix nonportable fopen call in new snapshot code.
Review URL: http://codereview.chromium.org/340002
http://code.google.com/p/v8/source/detail?r=3144

Modified:
  /branches/bleeding_edge/src/snapshot-common.cc

=======================================
--- /branches/bleeding_edge/src/snapshot-common.cc      Tue Oct 27 04:54:01 2009
+++ /branches/bleeding_edge/src/snapshot-common.cc      Tue Oct 27 06:19:14 2009
@@ -32,6 +32,7 @@
  #include "api.h"
  #include "serialize.h"
  #include "snapshot.h"
+#include "platform.h"

  namespace v8 {
  namespace internal {
@@ -96,7 +97,7 @@
  class FileByteSink : public SnapshotByteSink {
   public:
    explicit FileByteSink(const char* snapshot_file) {
-    fp_ = fopen(snapshot_file, "wb");
+    fp_ = OS::FOpen(snapshot_file, "wb");
      if (fp_ == NULL) {
        PrintF("Unable to write to snapshot file \"%s\"\n", snapshot_file);
        exit(1);

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

Reply via email to