Index: src/top.h |
=================================================================== |
--- src/top.h (revision 6213) |
+++ src/top.h (working copy) |
@@ -32,12 +32,26 @@ |
#include "compilation-cache.h" |
#include "frames-inl.h" |
#include "runtime-profiler.h" |
-#include "simulator.h" |
+#ifdef USE_SIMULATOR |
+#ifdef V8_TARGET_ARCH_ARM |
+namespace assembler { |
+ namespace arm { |
+ class Simulator; |
+ } |
+} |
+#elif V8_TARGET_ARCH_MIPS |
+namespace assembler { |
+ namespace mips { |
+ class Simulator; |
+ } |
+} |
+#endif |
+#endif // USE_SIMULATOR |
+ |
namespace v8 { |
namespace internal { |
- |
#define RETURN_IF_SCHEDULED_EXCEPTION() \ |
if (Top::has_scheduled_exception()) return Top::PromoteScheduledException() |