Index: test/cctest/test-profile-generator.cc |
diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc |
index 272dec39b43599e150f8a6122103992cff7ae49a..57b9090d740f94a9d304afc4cbfcfecb0925cf35 100644 |
--- a/test/cctest/test-profile-generator.cc |
+++ b/test/cctest/test-profile-generator.cc |
@@ -344,11 +344,12 @@ class TestSetup { |
TEST(RecordTickSample) { |
TestSetup test_setup; |
- CpuProfilesCollection profiles(CcTest::i_isolate()); |
- CpuProfiler profiler(CcTest::i_isolate()); |
+ i::Isolate* isolate = CcTest::i_isolate(); |
+ CpuProfilesCollection profiles(isolate); |
+ CpuProfiler profiler(isolate); |
profiles.set_cpu_profiler(&profiler); |
profiles.StartProfiling("", false); |
- ProfileGenerator generator(&profiles); |
+ ProfileGenerator generator(isolate, &profiles); |
CodeEntry* entry1 = new CodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
CodeEntry* entry2 = new CodeEntry(i::Logger::FUNCTION_TAG, "bbb"); |
CodeEntry* entry3 = new CodeEntry(i::Logger::FUNCTION_TAG, "ccc"); |
@@ -416,11 +417,12 @@ static void CheckNodeIds(ProfileNode* node, unsigned* expectedId) { |
TEST(SampleIds) { |
TestSetup test_setup; |
- CpuProfilesCollection profiles(CcTest::i_isolate()); |
- CpuProfiler profiler(CcTest::i_isolate()); |
+ i::Isolate* isolate = CcTest::i_isolate(); |
+ CpuProfilesCollection profiles(isolate); |
+ CpuProfiler profiler(isolate); |
profiles.set_cpu_profiler(&profiler); |
profiles.StartProfiling("", true); |
- ProfileGenerator generator(&profiles); |
+ ProfileGenerator generator(isolate, &profiles); |
CodeEntry* entry1 = new CodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
CodeEntry* entry2 = new CodeEntry(i::Logger::FUNCTION_TAG, "bbb"); |
CodeEntry* entry3 = new CodeEntry(i::Logger::FUNCTION_TAG, "ccc"); |
@@ -473,11 +475,12 @@ TEST(SampleIds) { |
TEST(NoSamples) { |
TestSetup test_setup; |
- CpuProfilesCollection profiles(CcTest::i_isolate()); |
- CpuProfiler profiler(CcTest::i_isolate()); |
+ i::Isolate* isolate = CcTest::i_isolate(); |
+ CpuProfilesCollection profiles(isolate); |
+ CpuProfiler profiler(isolate); |
profiles.set_cpu_profiler(&profiler); |
profiles.StartProfiling("", false); |
- ProfileGenerator generator(&profiles); |
+ ProfileGenerator generator(isolate, &profiles); |
CodeEntry* entry1 = new CodeEntry(i::Logger::FUNCTION_TAG, "aaa"); |
generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); |