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

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

Issue 21159002: Implements far-branches on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | runtime/vm/assembler.cc » ('j') | runtime/vm/assembler_arm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
16 // Forward declarations. 22 // Forward declarations.
17 class Assembler; 23 class Assembler;
18 class AssemblerFixup; 24 class AssemblerFixup;
19 class AssemblerBuffer; 25 class AssemblerBuffer;
20 class MemoryRegion; 26 class MemoryRegion;
21 27
22 28
23 // External labels keep a function pointer to allow them 29 // External labels keep a function pointer to allow them
24 // to be called from code generated by the assembler. 30 // to be called from code generated by the assembler.
25 class ExternalLabel : public ValueObject { 31 class ExternalLabel : public ValueObject {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 #include "vm/assembler_x64.h" 211 #include "vm/assembler_x64.h"
206 #elif defined(TARGET_ARCH_ARM) 212 #elif defined(TARGET_ARCH_ARM)
207 #include "vm/assembler_arm.h" 213 #include "vm/assembler_arm.h"
208 #elif defined(TARGET_ARCH_MIPS) 214 #elif defined(TARGET_ARCH_MIPS)
209 #include "vm/assembler_mips.h" 215 #include "vm/assembler_mips.h"
210 #else 216 #else
211 #error Unknown architecture. 217 #error Unknown architecture.
212 #endif 218 #endif
213 219
214 #endif // VM_ASSEMBLER_H_ 220 #endif // VM_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler.cc » ('j') | runtime/vm/assembler_arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698