Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index 599e235c3925915fbb8f90bd5ed469d83290fb5b..262cd1d582de28735d0458249eddd3d70743dd2d 100644 |
--- a/src/runtime-profiler.cc |
+++ b/src/runtime-profiler.cc |
@@ -196,16 +196,9 @@ void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function) { |
// Get the stack check stub code object to match against. We aren't |
// prepared to generate it, but we don't expect to have to. |
- bool found_code = false; |
Code* stack_check_code = NULL; |
- if (FLAG_count_based_interrupts) { |
- InterruptStub interrupt_stub; |
- found_code = interrupt_stub.FindCodeInCache(&stack_check_code, isolate_); |
- } else // NOLINT |
- { // NOLINT |
- StackCheckStub check_stub; |
- found_code = check_stub.FindCodeInCache(&stack_check_code, isolate_); |
- } |
+ InterruptStub interrupt_stub; |
+ bool found_code = interrupt_stub.FindCodeInCache(&stack_check_code, isolate_); |
if (found_code) { |
Code* replacement_code = |
isolate_->builtins()->builtin(Builtins::kOnStackReplacement); |
@@ -379,12 +372,6 @@ void RuntimeProfiler::OptimizeNow() { |
} |
-void RuntimeProfiler::NotifyTick() { |
- if (FLAG_count_based_interrupts) return; |
- isolate_->stack_guard()->RequestRuntimeProfilerTick(); |
-} |
- |
- |
void RuntimeProfiler::SetUp() { |
ASSERT(has_been_globally_set_up_); |
if (!FLAG_watch_ic_patching) { |