Index: src/cpu-profiler-inl.h |
diff --git a/src/cpu-profiler-inl.h b/src/cpu-profiler-inl.h |
index 5df5893f8a906c583452fad1252eecce8f7b857d..440dedca6e760dd8954adad6fa6dae9403c40665 100644 |
--- a/src/cpu-profiler-inl.h |
+++ b/src/cpu-profiler-inl.h |
@@ -41,6 +41,9 @@ namespace internal { |
void CodeCreateEventRecord::UpdateCodeMap(CodeMap* code_map) { |
code_map->AddCode(start, entry, size); |
+ if (sfi_address != NULL) { |
+ entry->set_shared_id(code_map->GetSFITag(sfi_address)); |
+ } |
} |
@@ -54,8 +57,8 @@ void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) { |
} |
-void CodeAliasEventRecord::UpdateCodeMap(CodeMap* code_map) { |
- code_map->AddAlias(start, entry, code_start); |
+void SFIMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
+ code_map->MoveCode(from, to); |
} |