Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index de9bf401ba41e5c3118ff6aa52fb77913eef22e7..7892508bd3f1c244ce2664919b007ee56116f70e 100644 |
--- a/src/runtime-profiler.cc |
+++ b/src/runtime-profiler.cc |
@@ -173,7 +173,7 @@ void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function) { |
// prepared to generate it, but we don't expect to have to. |
bool found_code = false; |
Code* stack_check_code = NULL; |
-#ifdef V8_TARGET_ARCH_IA32 |
+#if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_ARM) |
if (FLAG_count_based_interrupts) { |
InterruptStub interrupt_stub; |
found_code = interrupt_stub.FindCodeInCache(&stack_check_code); |
@@ -344,7 +344,7 @@ void RuntimeProfiler::OptimizeNow() { |
void RuntimeProfiler::NotifyTick() { |
-#ifdef V8_TARGET_ARCH_IA32 |
+#if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_ARM) |
if (FLAG_count_based_interrupts) return; |
#endif |
isolate_->stack_guard()->RequestRuntimeProfilerTick(); |