Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: src/heap/scavenge-job.cc

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/heap/scavenge-job.h" 5 #include "src/heap/scavenge-job.h"
6 6
7 #include "src/base/platform/time.h" 7 #include "src/base/platform/time.h"
8 #include "src/heap/heap-inl.h" 8 #include "src/heap/heap-inl.h"
9 #include "src/heap/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void ScavengeJob::ScheduleIdleTask(Heap* heap) { 105 void ScavengeJob::ScheduleIdleTask(Heap* heap) {
106 if (!idle_task_pending_) { 106 if (!idle_task_pending_) {
107 v8::Isolate* isolate = reinterpret_cast<v8::Isolate*>(heap->isolate()); 107 v8::Isolate* isolate = reinterpret_cast<v8::Isolate*>(heap->isolate());
108 if (V8::GetCurrentPlatform()->IdleTasksEnabled(isolate)) { 108 if (V8::GetCurrentPlatform()->IdleTasksEnabled(isolate)) {
109 idle_task_pending_ = true; 109 idle_task_pending_ = true;
110 auto task = new IdleTask(heap->isolate(), this); 110 auto task = new IdleTask(heap->isolate(), this);
111 V8::GetCurrentPlatform()->CallIdleOnForegroundThread(isolate, task); 111 V8::GetCurrentPlatform()->CallIdleOnForegroundThread(isolate, task);
112 } 112 }
113 } 113 }
114 } 114 }
115 } 115 } // namespace internal
116 } // namespace v8::internal 116 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/scavenge-job.h ('k') | src/heap/spaces.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698