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

Side by Side Diff: runtime/vm/cpu_arm.h

Issue 120723003: Refactors CPU feature detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Cleanup Created 6 years, 11 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef VM_CPU_ARM_H_
6 #define VM_CPU_ARM_H_
7
8 #include "vm/allocation.h"
9 #include "vm/simulator.h"
10
11 namespace dart {
12
13 class CPUFeatures : public AllStatic {
14 public:
15 static void InitOnce();
16 static bool double_truncate_round_supported() { return false; }
17 static bool integer_division_supported();
18 static bool neon_supported();
19 static char* hardware();
20 #if defined(USING_SIMULATOR)
21 static void set_integer_division_supported(bool supported);
22 static void set_neon_supported(bool supported);
23 #endif
24 private:
25 #define HARDWARE_LEN 64
26 static char hardware_[HARDWARE_LEN];
27
28 static bool integer_division_supported_;
29 static bool neon_supported_;
30 #if defined(DEBUG)
31 static bool initialized_;
32 #endif
33 };
34
35 } // namespace dart
36
37 #endif // VM_CPU_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/cpu.h ('k') | runtime/vm/cpu_arm.cc » ('j') | runtime/vm/cpu_ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698