Index: src/mksnapshot.cc |
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc |
index de6ffb82afc81b15a5dc10d128872e06e524a726..69306e14dc5ee79b9d72b7e7b7a0a6e154d7293f 100644 |
--- a/src/mksnapshot.cc |
+++ b/src/mksnapshot.cc |
@@ -12,11 +12,11 @@ |
#include "src/v8.h" |
#include "src/assembler.h" |
+#include "src/base/platform/platform.h" |
#include "src/bootstrapper.h" |
#include "src/flags.h" |
#include "src/list.h" |
#include "src/natives.h" |
-#include "src/platform.h" |
#include "src/serialize.h" |
@@ -134,7 +134,7 @@ class SnapshotWriter { |
void WriteFilePrefix() const { |
fprintf(fp_, "// Autogenerated snapshot file. Do not edit.\n\n"); |
fprintf(fp_, "#include \"src/v8.h\"\n"); |
- fprintf(fp_, "#include \"src/platform.h\"\n\n"); |
+ fprintf(fp_, "#include \"src/base/platform/platform.h\"\n\n"); |
fprintf(fp_, "#include \"src/snapshot.h\"\n\n"); |
fprintf(fp_, "namespace v8 {\n"); |
fprintf(fp_, "namespace internal {\n\n"); |
@@ -231,7 +231,7 @@ class SnapshotWriter { |
} |
FILE* GetFileDescriptorOrDie(const char* filename) { |
- FILE* fp = i::OS::FOpen(filename, "wb"); |
+ FILE* fp = base::OS::FOpen(filename, "wb"); |
if (fp == NULL) { |
i::PrintF("Unable to open file \"%s\" for writing.\n", filename); |
exit(1); |
@@ -363,7 +363,7 @@ int main(int argc, char** argv) { |
HandleScope scope(isolate); |
v8::Context::Scope cscope(v8::Local<v8::Context>::New(isolate, context)); |
const char* name = i::FLAG_extra_code; |
- FILE* file = i::OS::FOpen(name, "rb"); |
+ FILE* file = base::OS::FOpen(name, "rb"); |
if (file == NULL) { |
fprintf(stderr, "Failed to open '%s': errno %d\n", name, errno); |
exit(1); |