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

Side by Side Diff: src/cpu.h

Issue 300713002: Move NumberOfProcessorsOnline from CPU to OS (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/cpu.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 2006-2013 the V8 project authors. All rights reserved. 1 // Copyright 2006-2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This module contains the architecture-specific code. This make the rest of 5 // This module contains the architecture-specific code. This make the rest of
6 // the code less dependent on differences between different processor 6 // the code less dependent on differences between different processor
7 // architecture. 7 // architecture.
8 // The classes have the same definition for all architectures. The 8 // The classes have the same definition for all architectures. The
9 // implementation for a particular architecture is put in cpu_<arch>.cc. 9 // implementation for a particular architecture is put in cpu_<arch>.cc.
10 // The build system then uses the implementation for the target architecture. 10 // The build system then uses the implementation for the target architecture.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 bool has_sse42() const { return has_sse42_; } 70 bool has_sse42() const { return has_sse42_; }
71 71
72 // arm features 72 // arm features
73 bool has_idiva() const { return has_idiva_; } 73 bool has_idiva() const { return has_idiva_; }
74 bool has_neon() const { return has_neon_; } 74 bool has_neon() const { return has_neon_; }
75 bool has_thumbee() const { return has_thumbee_; } 75 bool has_thumbee() const { return has_thumbee_; }
76 bool has_vfp() const { return has_vfp_; } 76 bool has_vfp() const { return has_vfp_; }
77 bool has_vfp3() const { return has_vfp3_; } 77 bool has_vfp3() const { return has_vfp3_; }
78 bool has_vfp3_d32() const { return has_vfp3_d32_; } 78 bool has_vfp3_d32() const { return has_vfp3_d32_; }
79 79
80 // Returns the number of processors online.
81 static int NumberOfProcessorsOnline();
82
83 // Flush instruction cache. 80 // Flush instruction cache.
84 static void FlushICache(void* start, size_t size); 81 static void FlushICache(void* start, size_t size);
85 82
86 private: 83 private:
87 char vendor_[13]; 84 char vendor_[13];
88 int stepping_; 85 int stepping_;
89 int model_; 86 int model_;
90 int ext_model_; 87 int ext_model_;
91 int family_; 88 int family_;
92 int ext_family_; 89 int ext_family_;
(...skipping 15 matching lines...) Expand all
108 bool has_neon_; 105 bool has_neon_;
109 bool has_thumbee_; 106 bool has_thumbee_;
110 bool has_vfp_; 107 bool has_vfp_;
111 bool has_vfp3_; 108 bool has_vfp3_;
112 bool has_vfp3_d32_; 109 bool has_vfp3_d32_;
113 }; 110 };
114 111
115 } } // namespace v8::internal 112 } } // namespace v8::internal
116 113
117 #endif // V8_CPU_H_ 114 #endif // V8_CPU_H_
OLDNEW
« no previous file with comments | « no previous file | src/cpu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698