| 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_ASSEMBLER_H_ | 5 #ifndef VM_ASSEMBLER_H_ |
| 6 #define VM_ASSEMBLER_H_ | 6 #define 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/object.h" | 12 #include "vm/object.h" |
| 13 | 13 |
| 14 namespace dart { | 14 namespace dart { |
| 15 | 15 |
| 16 // TODO(zra): Remove once far branches are enabled automatically on a | |
| 17 // per-function basis. | |
| 18 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) | 16 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) |
| 19 DECLARE_FLAG(bool, use_far_branches); | 17 DECLARE_FLAG(bool, use_far_branches); |
| 20 #endif | 18 #endif |
| 21 | 19 |
| 22 // Forward declarations. | 20 // Forward declarations. |
| 23 class Assembler; | 21 class Assembler; |
| 24 class AssemblerFixup; | 22 class AssemblerFixup; |
| 25 class AssemblerBuffer; | 23 class AssemblerBuffer; |
| 26 class MemoryRegion; | 24 class MemoryRegion; |
| 27 | 25 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 #include "vm/assembler_x64.h" | 209 #include "vm/assembler_x64.h" |
| 212 #elif defined(TARGET_ARCH_ARM) | 210 #elif defined(TARGET_ARCH_ARM) |
| 213 #include "vm/assembler_arm.h" | 211 #include "vm/assembler_arm.h" |
| 214 #elif defined(TARGET_ARCH_MIPS) | 212 #elif defined(TARGET_ARCH_MIPS) |
| 215 #include "vm/assembler_mips.h" | 213 #include "vm/assembler_mips.h" |
| 216 #else | 214 #else |
| 217 #error Unknown architecture. | 215 #error Unknown architecture. |
| 218 #endif | 216 #endif |
| 219 | 217 |
| 220 #endif // VM_ASSEMBLER_H_ | 218 #endif // VM_ASSEMBLER_H_ |
| OLD | NEW |