Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 3001963002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Fuchsia fix Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/io_impl_sources.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index 9dee908222e2c9d239a1a60f0b87fad2232a2d8b..d82dd80a1e111cd639a9b0258d2f5dc0666fd3b3 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -446,7 +446,7 @@ static int ParseArguments(int argc,
static void WriteFile(const char* filename,
const uint8_t* buffer,
const intptr_t size) {
- File* file = File::Open(filename, File::kWriteTruncate);
+ File* file = File::Open(NULL, filename, File::kWriteTruncate);
if (file == NULL) {
Log::PrintErr("Error: Unable to write snapshot file: %s\n\n", filename);
Dart_ExitScope();
@@ -463,7 +463,7 @@ static void WriteFile(const char* filename,
}
static void ReadFile(const char* filename, uint8_t** buffer, intptr_t* size) {
- File* file = File::Open(filename, File::kRead);
+ File* file = File::Open(NULL, filename, File::kRead);
if (file == NULL) {
Log::PrintErr("Unable to open file %s\n", filename);
Dart_ExitScope();
@@ -612,7 +612,7 @@ class DependenciesFileWriter : public ValueObject {
void WriteDependencies(MallocGrowableArray<char*>* dependencies) {
dependencies_ = dependencies;
- file_ = File::Open(dependencies_filename, File::kWriteTruncate);
+ file_ = File::Open(NULL, dependencies_filename, File::kWriteTruncate);
if (file_ == NULL) {
Log::PrintErr("Error: Unable to open dependencies file: %s\n\n",
dependencies_filename);
@@ -1489,7 +1489,7 @@ static Dart_Isolate CreateServiceIsolate(const char* script_uri,
static MappedMemory* MapFile(const char* filename,
File::MapType type,
const uint8_t** buffer) {
- File* file = File::Open(filename, File::kRead);
+ File* file = File::Open(NULL, filename, File::kRead);
if (file == NULL) {
Log::PrintErr("Failed to open: %s\n", filename);
exit(kErrorExitCode);
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/io_impl_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698