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

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

Issue 2750843003: Rename TARGET_OS_* to HOST_OS_*. (Closed)
Patch Set: DEPS Created 3 years, 9 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/crypto_win.cc ('k') | runtime/bin/directory_android.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 "bin/dartutils.h" 5 #include "bin/dartutils.h"
6 6
7 #include "bin/crypto.h" 7 #include "bin/crypto.h"
8 #include "bin/directory.h" 8 #include "bin/directory.h"
9 #include "bin/extensions.h" 9 #include "bin/extensions.h"
10 #include "bin/file.h" 10 #include "bin/file.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 is_kernel_file = true; 87 is_kernel_file = true;
88 *kernel_file = buffer; 88 *kernel_file = buffer;
89 } 89 }
90 } 90 }
91 } 91 }
92 return is_kernel_file; 92 return is_kernel_file;
93 } 93 }
94 94
95 95
96 static bool IsWindowsHost() { 96 static bool IsWindowsHost() {
97 #if defined(TARGET_OS_WINDOWS) 97 #if defined(HOST_OS_WINDOWS)
98 return true; 98 return true;
99 #else // defined(TARGET_OS_WINDOWS) 99 #else // defined(HOST_OS_WINDOWS)
100 return false; 100 return false;
101 #endif // defined(TARGET_OS_WINDOWS) 101 #endif // defined(HOST_OS_WINDOWS)
102 } 102 }
103 103
104 104
105 const char* DartUtils::MapLibraryUrl(const char* url_string) { 105 const char* DartUtils::MapLibraryUrl(const char* url_string) {
106 ASSERT(url_mapping != NULL); 106 ASSERT(url_mapping != NULL);
107 // We need to check if the passed in url is found in the url_mapping array, 107 // We need to check if the passed in url is found in the url_mapping array,
108 // in that case use the mapped entry. 108 // in that case use the mapped entry.
109 intptr_t len = strlen(url_string); 109 intptr_t len = strlen(url_string);
110 for (intptr_t idx = 0; idx < url_mapping->count(); idx++) { 110 for (intptr_t idx = 0; idx < url_mapping->count(); idx++) {
111 const char* url_name = url_mapping->GetArgument(idx); 111 const char* url_name = url_mapping->GetArgument(idx);
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 new CObjectString(CObject::NewString(os_error->message())); 1182 new CObjectString(CObject::NewString(os_error->message()));
1183 CObjectArray* result = new CObjectArray(CObject::NewArray(3)); 1183 CObjectArray* result = new CObjectArray(CObject::NewArray(3));
1184 result->SetAt(0, new CObjectInt32(CObject::NewInt32(kOSError))); 1184 result->SetAt(0, new CObjectInt32(CObject::NewInt32(kOSError)));
1185 result->SetAt(1, new CObjectInt32(CObject::NewInt32(os_error->code()))); 1185 result->SetAt(1, new CObjectInt32(CObject::NewInt32(os_error->code())));
1186 result->SetAt(2, error_message); 1186 result->SetAt(2, error_message);
1187 return result; 1187 return result;
1188 } 1188 }
1189 1189
1190 } // namespace bin 1190 } // namespace bin
1191 } // namespace dart 1191 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/crypto_win.cc ('k') | runtime/bin/directory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698