Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 43d34510f4ac4ecce5be2f12d66b3bb33bf88956..6526be5d1b5eb617f962a92632874018462a3c10 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -7720,6 +7720,15 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeoptimizeFunction) { |
} |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) { |
+#if defined(USE_SIMULATOR) |
+ return isolate->heap()->true_value(); |
+#else |
+ return isolate->heap()->false_value(); |
+#endif |
+} |
+ |
+ |
RUNTIME_FUNCTION(MaybeObject*, Runtime_OptimizeFunctionOnNextCall) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 1); |