Index: test/cctest/test-profile-generator.cc |
diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc |
index 56b1788a85132140bfeb0d7bea36479f0f0deb36..85adeca5f468cd145260f1bf7800625e40ba1621 100644 |
--- a/test/cctest/test-profile-generator.cc |
+++ b/test/cctest/test-profile-generator.cc |
@@ -611,9 +611,9 @@ TEST(RecordTickSample) { |
CpuProfilesCollection profiles; |
profiles.StartProfiling("", 1, false); |
ProfileGenerator generator(&profiles); |
- CodeEntry* entry1 = generator.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
- CodeEntry* entry2 = generator.NewCodeEntry(i::Logger::FUNCTION_TAG, "bbb"); |
- CodeEntry* entry3 = generator.NewCodeEntry(i::Logger::FUNCTION_TAG, "ccc"); |
+ CodeEntry* entry1 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
+ CodeEntry* entry2 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "bbb"); |
+ CodeEntry* entry3 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "ccc"); |
generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); |
generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100); |
generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50); |
@@ -727,9 +727,9 @@ TEST(SampleIds) { |
CpuProfilesCollection profiles; |
profiles.StartProfiling("", 1, true); |
ProfileGenerator generator(&profiles); |
- CodeEntry* entry1 = generator.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
- CodeEntry* entry2 = generator.NewCodeEntry(i::Logger::FUNCTION_TAG, "bbb"); |
- CodeEntry* entry3 = generator.NewCodeEntry(i::Logger::FUNCTION_TAG, "ccc"); |
+ CodeEntry* entry1 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
+ CodeEntry* entry2 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "bbb"); |
+ CodeEntry* entry3 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "ccc"); |
generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); |
generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100); |
generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50); |
@@ -776,7 +776,7 @@ TEST(NoSamples) { |
CpuProfilesCollection profiles; |
profiles.StartProfiling("", 1, false); |
ProfileGenerator generator(&profiles); |
- CodeEntry* entry1 = generator.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
+ CodeEntry* entry1 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); |
// We are building the following calls tree: |