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

Side by Side Diff: runtime/vm/os_win.cc

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Merge and cleanup Created 3 years, 6 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/vm/os_macos.cc ('k') | runtime/vm/precompiler.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 "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(HOST_OS_WINDOWS) 6 #if defined(HOST_OS_WINDOWS)
7 7
8 #include "vm/os.h" 8 #include "vm/os.h"
9 9
10 #include <malloc.h> // NOLINT 10 #include <malloc.h> // NOLINT
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 int64_t OS::GetCurrentThreadCPUMicros() { 185 int64_t OS::GetCurrentThreadCPUMicros() {
186 // TODO(johnmccutchan): Implement. See base/time_win.cc for details. 186 // TODO(johnmccutchan): Implement. See base/time_win.cc for details.
187 return -1; 187 return -1;
188 } 188 }
189 189
190 190
191 intptr_t OS::ActivationFrameAlignment() { 191 intptr_t OS::ActivationFrameAlignment() {
192 #if defined(TARGET_ARCH_ARM64) 192 #if defined(TARGET_ARCH_ARM64)
193 return 16; 193 return 16;
194 #elif defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) 194 #elif defined(TARGET_ARCH_ARM)
195 return 8; 195 return 8;
196 #elif defined(_WIN64) 196 #elif defined(_WIN64)
197 // Windows 64-bit ABI requires the stack to be 16-byte aligned. 197 // Windows 64-bit ABI requires the stack to be 16-byte aligned.
198 return 16; 198 return 16;
199 #else 199 #else
200 // No requirements on Win32. 200 // No requirements on Win32.
201 return 1; 201 return 1;
202 #endif 202 #endif
203 } 203 }
204 204
205 205
206 intptr_t OS::PreferredCodeAlignment() { 206 intptr_t OS::PreferredCodeAlignment() {
207 ASSERT(32 <= OS::kMaxPreferredCodeAlignment); 207 ASSERT(32 <= OS::kMaxPreferredCodeAlignment);
208 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) || \ 208 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) || \
209 defined(TARGET_ARCH_ARM64) || defined(TARGET_ARCH_DBC) 209 defined(TARGET_ARCH_ARM64) || defined(TARGET_ARCH_DBC)
210 return 32; 210 return 32;
211 #elif defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) 211 #elif defined(TARGET_ARCH_ARM)
212 return 16; 212 return 16;
213 #else 213 #else
214 #error Unsupported architecture. 214 #error Unsupported architecture.
215 #endif 215 #endif
216 } 216 }
217 217
218 218
219 int OS::NumberOfAvailableProcessors() { 219 int OS::NumberOfAvailableProcessors() {
220 SYSTEM_INFO info; 220 SYSTEM_INFO info;
221 GetSystemInfo(&info); 221 GetSystemInfo(&info);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 // TODO(zra): Remove once VM shuts down cleanly. 445 // TODO(zra): Remove once VM shuts down cleanly.
446 private_flag_windows_run_tls_destructors = false; 446 private_flag_windows_run_tls_destructors = false;
447 // On Windows we use ExitProcess so that threads can't clobber the exit_code. 447 // On Windows we use ExitProcess so that threads can't clobber the exit_code.
448 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870 448 // See: https://code.google.com/p/nativeclient/issues/detail?id=2870
449 ::ExitProcess(code); 449 ::ExitProcess(code);
450 } 450 }
451 451
452 } // namespace dart 452 } // namespace dart
453 453
454 #endif // defined(HOST_OS_WINDOWS) 454 #endif // defined(HOST_OS_WINDOWS)
OLDNEW
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698