Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index 54fec77a2a3a3b6f087ffd546ba5cd1221546321..3b14fb6a55074666e10b4e31c6786184dd3515e0 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -236,7 +236,7 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
rec->entry->set_no_frame_ranges(info->ReleaseNoFrameRanges()); |
} |
if (shared->script()->IsScript()) { |
- ASSERT(Script::cast(shared->script())); |
+ DCHECK(Script::cast(shared->script())); |
Script* script = Script::cast(shared->script()); |
rec->entry->set_script_id(script->id()->value()); |
rec->entry->set_bailout_reason( |
@@ -267,7 +267,7 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
if (info) { |
rec->entry->set_no_frame_ranges(info->ReleaseNoFrameRanges()); |
} |
- ASSERT(Script::cast(shared->script())); |
+ DCHECK(Script::cast(shared->script())); |
Script* script = Script::cast(shared->script()); |
rec->entry->set_script_id(script->id()->value()); |
rec->size = code->ExecutableSize(); |
@@ -397,13 +397,13 @@ CpuProfiler::CpuProfiler(Isolate* isolate, |
CpuProfiler::~CpuProfiler() { |
- ASSERT(!is_profiling_); |
+ DCHECK(!is_profiling_); |
delete profiles_; |
} |
void CpuProfiler::set_sampling_interval(base::TimeDelta value) { |
- ASSERT(!is_profiling_); |
+ DCHECK(!is_profiling_); |
sampling_interval_ = value; |
} |
@@ -441,7 +441,7 @@ void CpuProfiler::StartProcessorIfNotStarted() { |
generator_, sampler, sampling_interval_); |
is_profiling_ = true; |
// Enumerate stuff we already have in the heap. |
- ASSERT(isolate_->heap()->HasBeenSetUp()); |
+ DCHECK(isolate_->heap()->HasBeenSetUp()); |
if (!FLAG_prof_browser_mode) { |
logger->LogCodeObjects(); |
} |
@@ -497,7 +497,7 @@ void CpuProfiler::StopProcessor() { |
void CpuProfiler::LogBuiltins() { |
Builtins* builtins = isolate_->builtins(); |
- ASSERT(builtins->is_initialized()); |
+ DCHECK(builtins->is_initialized()); |
for (int i = 0; i < Builtins::builtin_count; i++) { |
CodeEventsContainer evt_rec(CodeEventRecord::REPORT_BUILTIN); |
ReportBuiltinEventRecord* rec = &evt_rec.ReportBuiltinEventRecord_; |