Remove obsolete V8::IdleNotification dispatch.

R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/23691035

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16528 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 070e3b0a
......@@ -5316,7 +5316,8 @@ bool v8::V8::IdleNotification(int hint) {
// continue to call IdleNotification.
i::Isolate* isolate = i::Isolate::Current();
if (isolate == NULL || !isolate->IsInitialized()) return true;
return i::V8::IdleNotification(hint);
if (!i::FLAG_use_idle_notification) return true;
return isolate->heap()->IdleNotification(hint);
}
......
......@@ -174,16 +174,6 @@ uint32_t V8::RandomPrivate(Isolate* isolate) {
}
bool V8::IdleNotification(int hint) {
// Returning true tells the caller that there is no need to call
// IdleNotification again.
if (!FLAG_use_idle_notification) return true;
// Tell the heap that it may want to adjust.
return HEAP->IdleNotification(hint);
}
void V8::AddCallCompletedCallback(CallCompletedCallback callback) {
if (call_completed_callbacks_ == NULL) { // Lazy init.
call_completed_callbacks_ = new List<CallCompletedCallback>();
......
......@@ -105,9 +105,6 @@ class V8 : public AllStatic {
static Object* FillHeapNumberWithRandom(Object* heap_number,
Context* context);
// Idle notification directly from the API.
static bool IdleNotification(int hint);
static void AddCallCompletedCallback(CallCompletedCallback callback);
static void RemoveCallCompletedCallback(CallCompletedCallback callback);
static void FireCallCompletedCallback(Isolate* isolate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment