| 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.syntax unified\n"); | 16 printf("\t.syntax unified\n"); |
| 17 printf("\t.thumb\n"); | 17 printf("\t.thumb\n"); |
| 18 printf("\t.global %s%s\n%s%s:\n", prefix, name, prefix, name); | 18 printf("\t.global %s%s\n%s%s:\n", prefix, name, prefix, name); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void Assembler::DefineLong(const char* name) { printf("\t.long %s\n", name); } | 21 void Assembler::DefineLong(const char* name) { printf("\t.long %s\n", name); } |
| 22 | 22 |
| 23 const char* Assembler::LabelPrefix() { return ""; } | 23 const char* Assembler::LabelPrefix() { return ""; } |
| 24 | 24 |
| 25 } // namespace fletch | 25 } // namespace dartino |
| 26 | 26 |
| 27 #endif // defined(FLETCH_TARGET_ARM) && defined(FLETCH_TARGET_OS_LINUX) && | 27 #endif // defined(DARTINO_TARGET_ARM) && defined(DARTINO_TARGET_OS_LINUX) && |
| 28 // defined(FLETCH_THUMB_ONLY) | 28 // defined(DARTINO_THUMB_ONLY) |
| OLD | NEW |