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

Unified Diff: runtime/bin/snapshot_utils.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/security_context_linux.cc ('k') | runtime/vm/benchmark_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/snapshot_utils.cc
diff --git a/runtime/bin/snapshot_utils.cc b/runtime/bin/snapshot_utils.cc
index 6c58a30a8c639a40ed98e9508fa87c5897f4b94a..81b8490377a76ccd6dea344670dc9905328e6984 100644
--- a/runtime/bin/snapshot_utils.cc
+++ b/runtime/bin/snapshot_utils.cc
@@ -72,7 +72,7 @@ class MappedAppSnapshot : public AppSnapshot {
};
static AppSnapshot* TryReadAppSnapshotBlobs(const char* script_name) {
- File* file = File::Open(script_name, File::kRead);
+ File* file = File::Open(NULL, script_name, File::kRead);
if (file == NULL) {
return NULL;
}
@@ -226,7 +226,7 @@ static AppSnapshot* TryReadAppSnapshotDynamicLibrary(const char* script_name) {
#endif // defined(DART_PRECOMPILED_RUNTIME)
AppSnapshot* Snapshot::TryReadAppSnapshot(const char* script_name) {
- if (File::GetType(script_name, true) != File::kIsFile) {
+ if (File::GetType(NULL, script_name, true) != File::kIsFile) {
// If 'script_name' refers to a pipe, don't read to check for an app
// snapshot since we cannot rewind if it isn't (and couldn't mmap it in
// anyway if it was).
@@ -251,7 +251,7 @@ static void WriteSnapshotFile(const char* filename,
bool write_magic_number,
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) {
ErrorExit(kErrorExitCode, "Unable to open file %s for writing snapshot\n",
filename);
@@ -282,7 +282,7 @@ static void WriteAppSnapshot(const char* filename,
intptr_t isolate_data_size,
uint8_t* isolate_instructions_buffer,
intptr_t isolate_instructions_size) {
- File* file = File::Open(filename, File::kWriteTruncate);
+ File* file = File::Open(NULL, filename, File::kWriteTruncate);
if (file == NULL) {
ErrorExit(kErrorExitCode, "Unable to write snapshot file '%s'\n", filename);
}
« no previous file with comments | « runtime/bin/security_context_linux.cc ('k') | runtime/vm/benchmark_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698