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

Unified Diff: runtime/vm/simulator.h

Issue 12041056: Initial revision of ARM simulator and (empty) MIPS simulator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 | « runtime/vm/os_win.cc ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator.h
===================================================================
--- runtime/vm/simulator.h (revision 0)
+++ runtime/vm/simulator.h (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2013, the Dart 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 file.
+
+#ifndef VM_SIMULATOR_H_
+#define VM_SIMULATOR_H_
+
+#include "vm/globals.h"
+
+#if defined(TARGET_ARCH_IA32)
+// No simulator used.
+
+#elif defined(TARGET_ARCH_X64)
+// No simulator used.
+
+#elif defined(TARGET_ARCH_ARM)
+#if defined(HOST_ARCH_ARM)
+// No simulator used.
+#else
+#define USING_SIMULATOR 1
+#include "vm/simulator_arm.h"
+#endif
+
+#elif defined(TARGET_ARCH_MIPS)
+#if defined(HOST_ARCH_MIPS)
+// No simulator used.
+#else
+#define USING_SIMULATOR 1
+#include "vm/simulator_mips.h"
+#endif
+
+#else
+#error Unknown architecture.
+#endif
+
+#endif // VM_SIMULATOR_H_
« no previous file with comments | « runtime/vm/os_win.cc ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698