Index: runtime/vm/simulator.h |
=================================================================== |
--- runtime/vm/simulator.h (revision 0) |
+++ runtime/vm/simulator.h (revision 0) |
@@ -0,0 +1,24 @@ |
+// 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) |
+#define USING_SIMULATOR |
siva
2013/01/24 02:03:09
in globals.h we have used the pattern "#define <va
regis
2013/01/24 21:47:48
Good point. Fixed.
|
+#include "vm/simulator_arm.h" |
+#elif defined(TARGET_ARCH_MIPS) |
+#define USING_SIMULATOR |
+#include "vm/simulator_mips.h" |
siva
2013/01/24 02:03:09
Ditto comment for the MIPS case.
regis
2013/01/24 21:47:48
Done.
|
+#else |
+#error Unknown architecture. |
+#endif |
+ |
+#endif // VM_SIMULATOR_H_ |