Commit 36159570 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

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
parent 89253d33
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment