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

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

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Rebase 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
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_LINUX) 6 #if defined(HOST_OS_LINUX)
7 7
8 #include "vm/cpuinfo.h" 8 #include "vm/cpuinfo.h"
9 #include "vm/cpuid.h" 9 #include "vm/cpuid.h"
10 #include "vm/proccpuinfo.h" 10 #include "vm/proccpuinfo.h"
(...skipping 27 matching lines...) Expand all
38 method_ = kCpuInfoSystem; 38 method_ = kCpuInfoSystem;
39 ProcCpuInfo::InitOnce(); 39 ProcCpuInfo::InitOnce();
40 #elif defined(HOST_ARCH_ARM64) 40 #elif defined(HOST_ARCH_ARM64)
41 fields_[kCpuInfoProcessor] = "Processor"; 41 fields_[kCpuInfoProcessor] = "Processor";
42 fields_[kCpuInfoModel] = "CPU implementer"; 42 fields_[kCpuInfoModel] = "CPU implementer";
43 fields_[kCpuInfoHardware] = "CPU implementer"; 43 fields_[kCpuInfoHardware] = "CPU implementer";
44 fields_[kCpuInfoFeatures] = "Features"; 44 fields_[kCpuInfoFeatures] = "Features";
45 fields_[kCpuInfoArchitecture] = "CPU architecture"; 45 fields_[kCpuInfoArchitecture] = "CPU architecture";
46 method_ = kCpuInfoSystem; 46 method_ = kCpuInfoSystem;
47 ProcCpuInfo::InitOnce(); 47 ProcCpuInfo::InitOnce();
48 #elif defined(HOST_ARCH_MIPS)
49 fields_[kCpuInfoProcessor] = "system type";
50 fields_[kCpuInfoModel] = "cpu model";
51 fields_[kCpuInfoHardware] = "cpu model";
52 fields_[kCpuInfoFeatures] = "ASEs implemented";
53 fields_[kCpuInfoArchitecture] = "CPU architecture";
54 method_ = kCpuInfoSystem;
55 ProcCpuInfo::InitOnce();
56 #else 48 #else
57 #error Unrecognized target architecture 49 #error Unrecognized target architecture
58 #endif 50 #endif
59 } 51 }
60 52
61 53
62 void CpuInfo::Cleanup() { 54 void CpuInfo::Cleanup() {
63 if (method_ == kCpuInfoCpuId) { 55 if (method_ == kCpuInfoCpuId) {
64 CpuId::Cleanup(); 56 CpuId::Cleanup();
65 } else { 57 } else {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 (strcmp(field, fields_[kCpuInfoFeatures]) == 0); 92 (strcmp(field, fields_[kCpuInfoFeatures]) == 0);
101 } else { 93 } else {
102 ASSERT(method_ == kCpuInfoSystem); 94 ASSERT(method_ == kCpuInfoSystem);
103 return ProcCpuInfo::HasField(field); 95 return ProcCpuInfo::HasField(field);
104 } 96 }
105 } 97 }
106 98
107 } // namespace dart 99 } // namespace dart
108 100
109 #endif // defined(HOST_OS_LINUX) 101 #endif // defined(HOST_OS_LINUX)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698