Index: test/cctest/test-profile-generator.cc |
diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc |
index 4a29e59c56feba23c977e24f93167f919b10e045..76fd244e9716e40a69068a30abfbaa258cfc55d3 100644 |
--- a/test/cctest/test-profile-generator.cc |
+++ b/test/cctest/test-profile-generator.cc |
@@ -549,13 +549,14 @@ TEST(CodeMapMoveAndDeleteCode) { |
code_map.AddCode(ToAddress(0x1700), &entry2, 0x100); |
CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500))); |
CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); |
- code_map.MoveCode(ToAddress(0x1500), ToAddress(0x1800)); |
+ code_map.MoveCode(ToAddress(0x1500), ToAddress(0x1700)); // Deprecate bbb. |
CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1500))); |
- CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); |
- CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1800))); |
- code_map.DeleteCode(ToAddress(0x1700)); |
+ CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1700))); |
+ CodeEntry entry3(i::Logger::FUNCTION_TAG, "", "ccc", "", 0, |
+ TokenEnumerator::kNoSecurityToken); |
+ code_map.AddCode(ToAddress(0x1750), &entry3, 0x100); |
CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1700))); |
- CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1800))); |
+ CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1750))); |
} |