OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 #if defined(DARTINO_TARGET_MIPS) |
| 6 |
| 7 #include <stdio.h> |
| 8 #include "src/vm/assembler.h" |
| 9 |
| 10 namespace dartino { |
| 11 |
| 12 void Assembler::Bind(const char* prefix, const char* name) { |
| 13 putchar('\n'); |
| 14 printf("\t.type %s%s, @function\n", prefix, name); |
| 15 printf("\t.globl %s%s\n%s%s:\n", prefix, name, prefix, name); |
| 16 } |
| 17 |
| 18 void Assembler::DefineLong(const char* name) { |
| 19 printf("\t.long %s\n", name); |
| 20 } |
| 21 |
| 22 const char* Assembler::LabelPrefix() { return ""; } |
| 23 |
| 24 } // namespace dartino |
| 25 |
| 26 #endif // defined(DARTINO_TARGET_MIPS) |
OLD | NEW |