From 3615957055b362d681bde290ae321e1a3686080f Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Tue, 27 Oct 2009 13:19:14 +0000 Subject: [PATCH] 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 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3144 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/snapshot-common.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snapshot-common.cc b/src/snapshot-common.cc index 010648b12d..b258a15c01 100644 --- a/src/snapshot-common.cc +++ b/src/snapshot-common.cc @@ -32,6 +32,7 @@ #include "api.h" #include "serialize.h" #include "snapshot.h" +#include "platform.h" namespace v8 { namespace internal { @@ -96,7 +97,7 @@ bool Snapshot::WriteToFile(const char* snapshot_file) { 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);