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

Unified Diff: src/vm/assembler_mips_linux.cc

Issue 2006403003: [mips] Initial framework support for MIPS32 (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Code changes per review. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/vm/assembler_mips.cc ('k') | src/vm/interpreter_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm/assembler_mips_linux.cc
diff --git a/src/vm/assembler_mips_linux.cc b/src/vm/assembler_mips_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f0578e045139cca45daf0874ea7b07c6276cac4c
--- /dev/null
+++ b/src/vm/assembler_mips_linux.cc
@@ -0,0 +1,26 @@
+// Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE.md file.
+
+#if defined(DARTINO_TARGET_MIPS)
+
+#include <stdio.h>
+#include "src/vm/assembler.h"
+
+namespace dartino {
+
+void Assembler::Bind(const char* prefix, const char* name) {
+ putchar('\n');
+ printf("\t.type %s%s, @function\n", prefix, name);
+ printf("\t.globl %s%s\n%s%s:\n", prefix, name, prefix, name);
+}
+
+void Assembler::DefineLong(const char* name) {
+ printf("\t.long %s\n", name);
+}
+
+const char* Assembler::LabelPrefix() { return ""; }
+
+} // namespace dartino
+
+#endif // defined(DARTINO_TARGET_MIPS)
« no previous file with comments | « src/vm/assembler_mips.cc ('k') | src/vm/interpreter_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698