OLD | NEW |
---|---|
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 #ifndef VM_CPU_H_ | 5 #ifndef VM_CPU_H_ |
6 #define VM_CPU_H_ | 6 #define VM_CPU_H_ |
7 | 7 |
8 #include "vm/globals.h" | |
8 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
9 | 10 |
10 namespace dart { | 11 namespace dart { |
11 | 12 |
12 // Forward Declarations. | 13 // Forward Declarations. |
13 class Error; | 14 class Error; |
14 class Instance; | 15 class Instance; |
15 | 16 |
16 | 17 |
17 class CPU : public AllStatic { | 18 class CPU : public AllStatic { |
18 public: | 19 public: |
19 static void FlushICache(uword start, uword size); | 20 static void FlushICache(uword start, uword size); |
20 static const char* Id(); | 21 static const char* Id(); |
21 }; | 22 }; |
22 | 23 |
24 | |
siva
2014/02/21 19:28:55
extra blank line?
zra
2014/02/21 21:51:55
Removed.
| |
23 } // namespace dart | 25 } // namespace dart |
24 | 26 |
27 #if defined(TARGET_ARCH_IA32) | |
28 #include "vm/cpu_ia32.h" | |
29 #elif defined(TARGET_ARCH_X64) | |
30 #include "vm/cpu_x64.h" | |
31 #elif defined(TARGET_ARCH_ARM) | |
32 #include "vm/cpu_arm.h" | |
33 #elif defined(TARGET_ARCH_MIPS) | |
34 #include "vm/cpu_mips.h" | |
35 #else | |
36 #error Unknown architecture. | |
37 #endif | |
38 | |
25 #endif // VM_CPU_H_ | 39 #endif // VM_CPU_H_ |
OLD | NEW |