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

Unified Diff: src/mark-compact.cc

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/mark-compact.cc
diff --git a/src/mark-compact.cc b/src/mark-compact.cc
index 2e05171a779855e3b0fcfb945c96bc0cf79ced5c..8846f19bb0dbaeec80192bf9709b3e3f1029cf2c 100644
--- a/src/mark-compact.cc
+++ b/src/mark-compact.cc
@@ -613,7 +613,8 @@ bool MarkCompactCollector::IsSweepingCompleted() {
}
}
if (FLAG_job_based_sweeping) {
- if (!pending_sweeper_jobs_semaphore_.WaitFor(TimeDelta::FromSeconds(0))) {
+ if (!pending_sweeper_jobs_semaphore_.WaitFor(
+ base::TimeDelta::FromSeconds(0))) {
return false;
}
pending_sweeper_jobs_semaphore_.Signal();
@@ -3239,7 +3240,7 @@ static void SweepPrecisely(PagedSpace* space,
double start_time = 0.0;
if (FLAG_print_cumulative_gc_stat) {
- start_time = OS::TimeCurrentMillis();
+ start_time = base::OS::TimeCurrentMillis();
}
p->MarkSweptPrecisely();
@@ -3308,7 +3309,7 @@ static void SweepPrecisely(PagedSpace* space,
}
p->ResetLiveBytes();
if (FLAG_print_cumulative_gc_stat) {
- space->heap()->AddSweepingTime(OS::TimeCurrentMillis() - start_time);
+ space->heap()->AddSweepingTime(base::OS::TimeCurrentMillis() - start_time);
}
}
« src/base/macros.h ('K') | « src/mark-compact.h ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698