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
This commit is contained in:
erik.corry@gmail.com 2009-10-27 13:19:14 +00:00
parent 89253d33c2
commit 3615957055

View 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);