| Index: test/cctest/test-profile-generator.cc
|
| diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc
|
| index a110969b54efadc3f24dd76d73a9c9b8eb2378a3..47146ecc485123511b5b7410f62ef58d9bc97272 100644
|
| --- a/test/cctest/test-profile-generator.cc
|
| +++ b/test/cctest/test-profile-generator.cc
|
| @@ -399,7 +399,7 @@ class TestSetup {
|
|
|
| TEST(RecordTickSample) {
|
| TestSetup test_setup;
|
| - CpuProfilesCollection profiles(CcTest::i_isolate()->heap());
|
| + CpuProfilesCollection profiles(CcTest::heap());
|
| profiles.StartProfiling("", 1, false);
|
| ProfileGenerator generator(&profiles);
|
| CodeEntry* entry1 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa");
|
| @@ -465,7 +465,7 @@ static void CheckNodeIds(ProfileNode* node, int* expectedId) {
|
|
|
| TEST(SampleIds) {
|
| TestSetup test_setup;
|
| - CpuProfilesCollection profiles(CcTest::i_isolate()->heap());
|
| + CpuProfilesCollection profiles(CcTest::heap());
|
| profiles.StartProfiling("", 1, true);
|
| ProfileGenerator generator(&profiles);
|
| CodeEntry* entry1 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa");
|
| @@ -513,7 +513,7 @@ TEST(SampleIds) {
|
|
|
| TEST(NoSamples) {
|
| TestSetup test_setup;
|
| - CpuProfilesCollection profiles(CcTest::i_isolate()->heap());
|
| + CpuProfilesCollection profiles(CcTest::heap());
|
| profiles.StartProfiling("", 1, false);
|
| ProfileGenerator generator(&profiles);
|
| CodeEntry* entry1 = profiles.NewCodeEntry(i::Logger::FUNCTION_TAG, "aaa");
|
| @@ -652,7 +652,7 @@ TEST(RecordStackTraceAtStartProfiling) {
|
|
|
|
|
| TEST(Issue51919) {
|
| - CpuProfilesCollection collection(CcTest::i_isolate()->heap());
|
| + CpuProfilesCollection collection(CcTest::heap());
|
| i::EmbeddedVector<char*,
|
| CpuProfilesCollection::kMaxSimultaneousProfiles> titles;
|
| for (int i = 0; i < CpuProfilesCollection::kMaxSimultaneousProfiles; ++i) {
|
|
|