Start using snapshot VM configuration in internal benchmark
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 27 Oct 2009 13:19:14 +0000 (13:19 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 27 Oct 2009 13:19:14 +0000 (13:19 +0000)
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

index 010648b12dcb6c556be36fa8cce2eaddfcdc72ff..b258a15c0128afad1f9bb472fe40c388e355ef13 100644 (file)
@@ -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);