Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index 35fe7888646c0e37adcc5944947d3f15feaeabf4..b79c029b72ef028501039696c9dc6e213915e951 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -243,6 +243,8 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
ASSERT(Script::cast(shared->script())); |
Script* script = Script::cast(shared->script()); |
rec->entry->set_script_id(script->id()->value()); |
+ rec->entry->set_bailout_reason( |
+ GetBailoutReason(shared->DisableOptimizationReason())); |
} |
rec->size = code->ExecutableSize(); |
rec->shared = shared->address(); |
@@ -273,6 +275,8 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, |
rec->entry->set_script_id(script->id()->value()); |
rec->size = code->ExecutableSize(); |
rec->shared = shared->address(); |
+ rec->entry->set_bailout_reason( |
+ GetBailoutReason(shared->DisableOptimizationReason())); |
processor_->Enqueue(evt_rec); |
} |