OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #if defined(FLETCH_TARGET_ARM) && defined(FLETCH_TARGET_OS_LINUX) && \ | 5 #if defined(DARTINO_TARGET_ARM) && defined(DARTINO_TARGET_OS_LINUX) && \ |
6 !defined(FLETCH_THUMB_ONLY) | 6 !defined(DARTINO_THUMB_ONLY) |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include "src/vm/assembler.h" | 9 #include "src/vm/assembler.h" |
10 | 10 |
11 namespace fletch { | 11 namespace dartino { |
12 | 12 |
13 void Assembler::Bind(const char* prefix, const char* name) { | 13 void Assembler::Bind(const char* prefix, const char* name) { |
14 putchar('\n'); | 14 putchar('\n'); |
15 printf("\t.type %s%s, %%function\n", prefix, name); | 15 printf("\t.type %s%s, %%function\n", prefix, name); |
16 printf("\t.code 32\n"); | 16 printf("\t.code 32\n"); |
17 printf("\t.global %s%s\n%s%s:\n", prefix, name, prefix, name); | 17 printf("\t.global %s%s\n%s%s:\n", prefix, name, prefix, name); |
18 } | 18 } |
19 | 19 |
20 void Assembler::DefineLong(const char* name) { printf("\t.long %s\n", name); } | 20 void Assembler::DefineLong(const char* name) { printf("\t.long %s\n", name); } |
21 | 21 |
22 const char* Assembler::LabelPrefix() { return ""; } | 22 const char* Assembler::LabelPrefix() { return ""; } |
23 | 23 |
24 } // namespace fletch | 24 } // namespace dartino |
25 | 25 |
26 #endif // defined(FLETCH_TARGET_ARM) && defined(FLETCH_TARGET_OS_LINUX) && | 26 #endif // defined(DARTINO_TARGET_ARM) && defined(DARTINO_TARGET_OS_LINUX) && |
27 // !defined(FLETCH_THUMB_ONLY) | 27 // !defined(DARTINO_THUMB_ONLY) |
OLD | NEW |