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

Side by Side Diff: runtime/bin/file_win.cc

Issue 2416973003: Reapply "Use a single file for app snapshots." (Closed)
Patch Set: sync Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_WINDOWS) 6 #if defined(TARGET_OS_WINDOWS)
7 7
8 #include "bin/file.h" 8 #include "bin/file.h"
9 9
10 #include <fcntl.h> // NOLINT 10 #include <fcntl.h> // NOLINT
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 intptr_t File::GetFD() { 67 intptr_t File::GetFD() {
68 return handle_->fd(); 68 return handle_->fd();
69 } 69 }
70 70
71 71
72 bool File::IsClosed() { 72 bool File::IsClosed() {
73 return handle_->fd() == kClosedFd; 73 return handle_->fd() == kClosedFd;
74 } 74 }
75 75
76 76
77 void* File::MapExecutable(intptr_t* len) { 77 void* File::Map(MapType type, int64_t position, int64_t length) {
78 UNIMPLEMENTED(); 78 UNIMPLEMENTED();
79 return NULL; 79 return NULL;
80 } 80 }
81 81
82 82
83 int64_t File::Read(void* buffer, int64_t num_bytes) { 83 int64_t File::Read(void* buffer, int64_t num_bytes) {
84 ASSERT(handle_->fd() >= 0); 84 ASSERT(handle_->fd() >= 0);
85 return read(handle_->fd(), buffer, num_bytes); 85 return read(handle_->fd(), buffer, num_bytes);
86 } 86 }
87 87
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return kIdentical; 700 return kIdentical;
701 } else { 701 } else {
702 return kDifferent; 702 return kDifferent;
703 } 703 }
704 } 704 }
705 705
706 } // namespace bin 706 } // namespace bin
707 } // namespace dart 707 } // namespace dart
708 708
709 #endif // defined(TARGET_OS_WINDOWS) 709 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/gen_snapshot.cc » ('j') | runtime/bin/main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698