| 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) | |
| 19 DECLARE_FLAG(bool, use_far_branches); | |
| 20 #endif | |
| 21 | |
| 22 // Forward declarations. | 16 // Forward declarations. |
| 23 class Assembler; | 17 class Assembler; |
| 24 class AssemblerFixup; | 18 class AssemblerFixup; |
| 25 class AssemblerBuffer; | 19 class AssemblerBuffer; |
| 26 class MemoryRegion; | 20 class MemoryRegion; |
| 27 | 21 |
| 28 | 22 |
| 29 // External labels keep a function pointer to allow them | 23 // External labels keep a function pointer to allow them |
| 30 // to be called from code generated by the assembler. | 24 // to be called from code generated by the assembler. |
| 31 class ExternalLabel : public ValueObject { | 25 class ExternalLabel : public ValueObject { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 #include "vm/assembler_x64.h" | 205 #include "vm/assembler_x64.h" |
| 212 #elif defined(TARGET_ARCH_ARM) | 206 #elif defined(TARGET_ARCH_ARM) |
| 213 #include "vm/assembler_arm.h" | 207 #include "vm/assembler_arm.h" |
| 214 #elif defined(TARGET_ARCH_MIPS) | 208 #elif defined(TARGET_ARCH_MIPS) |
| 215 #include "vm/assembler_mips.h" | 209 #include "vm/assembler_mips.h" |
| 216 #else | 210 #else |
| 217 #error Unknown architecture. | 211 #error Unknown architecture. |
| 218 #endif | 212 #endif |
| 219 | 213 |
| 220 #endif // VM_ASSEMBLER_H_ | 214 #endif // VM_ASSEMBLER_H_ |
| OLD | NEW |