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 RUNTIME_VM_ASSEMBLER_H_ | 5 #ifndef RUNTIME_VM_ASSEMBLER_H_ |
6 #define RUNTIME_VM_ASSEMBLER_H_ | 6 #define RUNTIME_VM_ASSEMBLER_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
11 #include "vm/growable_array.h" | 11 #include "vm/growable_array.h" |
12 #include "vm/hash_map.h" | 12 #include "vm/hash_map.h" |
13 #include "vm/object.h" | 13 #include "vm/object.h" |
14 | 14 |
15 namespace dart { | 15 namespace dart { |
16 | 16 |
17 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_ARM64) || \ | 17 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_ARM64) |
18 defined(TARGET_ARCH_MIPS) | |
19 DECLARE_FLAG(bool, use_far_branches); | 18 DECLARE_FLAG(bool, use_far_branches); |
20 #endif | 19 #endif |
21 | 20 |
22 // Forward declarations. | 21 // Forward declarations. |
23 class Assembler; | 22 class Assembler; |
24 class AssemblerFixup; | 23 class AssemblerFixup; |
25 class AssemblerBuffer; | 24 class AssemblerBuffer; |
26 class MemoryRegion; | 25 class MemoryRegion; |
27 | 26 |
28 | 27 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 327 |
329 | 328 |
330 #if defined(TARGET_ARCH_IA32) | 329 #if defined(TARGET_ARCH_IA32) |
331 #include "vm/assembler_ia32.h" | 330 #include "vm/assembler_ia32.h" |
332 #elif defined(TARGET_ARCH_X64) | 331 #elif defined(TARGET_ARCH_X64) |
333 #include "vm/assembler_x64.h" | 332 #include "vm/assembler_x64.h" |
334 #elif defined(TARGET_ARCH_ARM) | 333 #elif defined(TARGET_ARCH_ARM) |
335 #include "vm/assembler_arm.h" | 334 #include "vm/assembler_arm.h" |
336 #elif defined(TARGET_ARCH_ARM64) | 335 #elif defined(TARGET_ARCH_ARM64) |
337 #include "vm/assembler_arm64.h" | 336 #include "vm/assembler_arm64.h" |
338 #elif defined(TARGET_ARCH_MIPS) | |
339 #include "vm/assembler_mips.h" | |
340 #elif defined(TARGET_ARCH_DBC) | 337 #elif defined(TARGET_ARCH_DBC) |
341 #include "vm/assembler_dbc.h" | 338 #include "vm/assembler_dbc.h" |
342 #else | 339 #else |
343 #error Unknown architecture. | 340 #error Unknown architecture. |
344 #endif | 341 #endif |
345 | 342 |
346 #endif // RUNTIME_VM_ASSEMBLER_H_ | 343 #endif // RUNTIME_VM_ASSEMBLER_H_ |
OLD | NEW |