Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index 262cd1d582de28735d0458249eddd3d70743dd2d..94a56509077320cfd83756d6c4e7e01e808f00fa 100644 |
--- a/src/runtime-profiler.cc |
+++ b/src/runtime-profiler.cc |
@@ -430,11 +430,6 @@ void RuntimeProfiler::HandleWakeUp(Isolate* isolate) { |
} |
-bool RuntimeProfiler::IsSomeIsolateInJS() { |
- return NoBarrier_Load(&state_) > 0; |
-} |
- |
- |
bool RuntimeProfiler::WaitForSomeIsolateToEnterJS() { |
Atomic32 old_state = NoBarrier_CompareAndSwap(&state_, 0, -1); |
ASSERT(old_state >= -1); |
@@ -484,12 +479,4 @@ void RuntimeProfiler::UpdateSamplesAfterCompact(ObjectVisitor* visitor) { |
} |
-bool RuntimeProfilerRateLimiter::SuspendIfNecessary() { |
- if (!RuntimeProfiler::IsSomeIsolateInJS()) { |
- return RuntimeProfiler::WaitForSomeIsolateToEnterJS(); |
- } |
- return false; |
-} |
- |
- |
} } // namespace v8::internal |