cd746c8172
Review URL: https://codereview.chromium.org//12041056 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17623 260f80e4-7a28-3924-810f-c04153c831b5
37 lines
771 B
C
37 lines
771 B
C
// 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_
|