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

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

Issue 1915853004: Option to output precompiled instructions as a blob for use with mmap instead of assembly for use i… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 intptr_t File::GetFD() { 66 intptr_t File::GetFD() {
67 return handle_->fd(); 67 return handle_->fd();
68 } 68 }
69 69
70 70
71 bool File::IsClosed() { 71 bool File::IsClosed() {
72 return handle_->fd() == kClosedFd; 72 return handle_->fd() == kClosedFd;
73 } 73 }
74 74
75 75
76 void* File::MapExecutable(intptr_t* len) {
77 UNIMPLEMENTED();
78 return NULL;
79 }
80
81
76 int64_t File::Read(void* buffer, int64_t num_bytes) { 82 int64_t File::Read(void* buffer, int64_t num_bytes) {
77 ASSERT(handle_->fd() >= 0); 83 ASSERT(handle_->fd() >= 0);
78 return read(handle_->fd(), buffer, num_bytes); 84 return read(handle_->fd(), buffer, num_bytes);
79 } 85 }
80 86
81 87
82 int64_t File::Write(const void* buffer, int64_t num_bytes) { 88 int64_t File::Write(const void* buffer, int64_t num_bytes) {
83 ASSERT(handle_->fd() >= 0); 89 ASSERT(handle_->fd() >= 0);
84 return write(handle_->fd(), buffer, num_bytes); 90 return write(handle_->fd(), buffer, num_bytes);
85 } 91 }
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 return kIdentical; 693 return kIdentical;
688 } else { 694 } else {
689 return kDifferent; 695 return kDifferent;
690 } 696 }
691 } 697 }
692 698
693 } // namespace bin 699 } // namespace bin
694 } // namespace dart 700 } // namespace dart
695 701
696 #endif // defined(TARGET_OS_WINDOWS) 702 #endif // defined(TARGET_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698