Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 7612eab993ca123ab3bbe4a32022087f03050205..335120ebaa785ddf6ce65a3d895f41eeedbfb946 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -465,7 +465,7 @@ void CpuProfile::Print() { |
} |
-CodeEntry* const CodeMap::kSfiCodeEntry = NULL; |
+CodeEntry* const CodeMap::kSharedFunctionCodeEntry = NULL; |
const CodeMap::CodeTreeConfig::Key CodeMap::CodeTreeConfig::kNoKey = NULL; |
const CodeMap::CodeTreeConfig::Value CodeMap::CodeTreeConfig::kNoValue = |
CodeMap::CodeEntryInfo(NULL, 0); |
@@ -483,18 +483,18 @@ CodeEntry* CodeMap::FindEntry(Address addr) { |
} |
-int CodeMap::GetSFITag(Address addr) { |
+int CodeMap::GetSharedId(Address addr) { |
CodeTree::Locator locator; |
- // For SFI entries, 'size' field is used to store their IDs. |
+ // For shared function entries, 'size' field is used to store their IDs. |
if (tree_.Find(addr, &locator)) { |
const CodeEntryInfo& entry = locator.value(); |
- ASSERT(entry.entry == kSfiCodeEntry); |
+ ASSERT(entry.entry == kSharedFunctionCodeEntry); |
return entry.size; |
} else { |
tree_.Insert(addr, &locator); |
- int tag = next_sfi_tag_++; |
- locator.set_value(CodeEntryInfo(kSfiCodeEntry, tag)); |
- return tag; |
+ int id = next_shared_id_++; |
+ locator.set_value(CodeEntryInfo(kSharedFunctionCodeEntry, id)); |
+ return id; |
} |
} |