Index: src/cpu-profiler-inl.h |
diff --git a/src/cpu-profiler-inl.h b/src/cpu-profiler-inl.h |
index 408d46bfb7d1e40e95d7e42b97f3790a263c914b..c3cc27c770eafc812c94f8a42ad9416f0132a9eb 100644 |
--- a/src/cpu-profiler-inl.h |
+++ b/src/cpu-profiler-inl.h |
@@ -56,6 +56,17 @@ void SharedFunctionInfoMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
} |
+void ReportBuiltinEventRecord::UpdateCodeMap(CodeMap* code_map) { |
+ CodeEntry* entry = code_map->FindEntry(start); |
+ if (!entry) { |
+ // Code objects for builtins should already have been added to the map but |
+ // some of them have been filtered out by CpuProfiler. |
+ return; |
+ } |
+ entry->SetBuiltinId(builtin_id); |
+} |
+ |
+ |
TickSample* ProfilerEventsProcessor::TickSampleEvent() { |
generator_->Tick(); |
TickSampleEventRecord* evt = |