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

Side by Side Diff: src/heap/memory-reducer.cc

Issue 1322883002: Make isolate.h usable without objects-inl.h header. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-frames-2
Patch Set: Rebased. Created 5 years, 3 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
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/memory-reducer.h" 5 #include "src/heap/memory-reducer.h"
6 6
7 #include "src/flags.h" 7 #include "src/flags.h"
8 #include "src/heap/gc-tracer.h" 8 #include "src/heap/gc-tracer.h"
9 #include "src/heap/heap.h" 9 #include "src/heap/heap-inl.h"
10 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
11 #include "src/utils.h" 10 #include "src/utils.h"
12 #include "src/v8.h" 11 #include "src/v8.h"
13 12
14 namespace v8 { 13 namespace v8 {
15 namespace internal { 14 namespace internal {
16 15
17 const int MemoryReducer::kLongDelayMs = 5000; 16 const int MemoryReducer::kLongDelayMs = 5000;
18 const int MemoryReducer::kShortDelayMs = 500; 17 const int MemoryReducer::kShortDelayMs = 500;
19 const int MemoryReducer::kWatchdogDelayMs = 100000; 18 const int MemoryReducer::kWatchdogDelayMs = 100000;
20 const int MemoryReducer::kMaxNumberOfGCs = 3; 19 const int MemoryReducer::kMaxNumberOfGCs = 3;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 auto timer_task = new MemoryReducer::TimerTask(this); 197 auto timer_task = new MemoryReducer::TimerTask(this);
199 V8::GetCurrentPlatform()->CallDelayedOnForegroundThread( 198 V8::GetCurrentPlatform()->CallDelayedOnForegroundThread(
200 isolate, timer_task, (delay_ms + kSlackMs) / 1000.0); 199 isolate, timer_task, (delay_ms + kSlackMs) / 1000.0);
201 } 200 }
202 201
203 202
204 void MemoryReducer::TearDown() { state_ = State(kDone, 0, 0, 0.0); } 203 void MemoryReducer::TearDown() { state_ = State(kDone, 0, 0, 0.0); }
205 204
206 } // internal 205 } // internal
207 } // v8 206 } // v8
OLDNEW
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698