| Index: test/cctest/test-cpu-profiler.cc
|
| diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc
|
| index 580a8de767833803844a772a541b4b5e510193e3..0e18dbb32552fa1f68e626fe226861458466e5f9 100644
|
| --- a/test/cctest/test-cpu-profiler.cc
|
| +++ b/test/cctest/test-cpu-profiler.cc
|
| @@ -127,7 +127,7 @@ i::Code* CreateCode(LocalContext* env) {
|
| TEST(CodeEvents) {
|
| CcTest::InitializeVM();
|
| LocalContext env;
|
| - i::Isolate* isolate = i::Isolate::Current();
|
| + i::Isolate* isolate = CcTest::i_isolate();
|
| i::Factory* factory = isolate->factory();
|
| TestSetup test_setup;
|
|
|
| @@ -196,7 +196,7 @@ static int CompareProfileNodes(const T* p1, const T* p2) {
|
| TEST(TickEvents) {
|
| TestSetup test_setup;
|
| LocalContext env;
|
| - i::Isolate* isolate = i::Isolate::Current();
|
| + i::Isolate* isolate = CcTest::i_isolate();
|
| i::HandleScope scope(isolate);
|
|
|
| i::Code* frame1_code = CreateCode(&env);
|
| @@ -254,7 +254,7 @@ TEST(TickEvents) {
|
| TEST(CrashIfStoppingLastNonExistentProfile) {
|
| CcTest::InitializeVM();
|
| TestSetup test_setup;
|
| - CpuProfiler* profiler = i::Isolate::Current()->cpu_profiler();
|
| + CpuProfiler* profiler = CcTest::i_isolate()->cpu_profiler();
|
| profiler->StartProfiling("1");
|
| profiler->StopProfiling("2");
|
| profiler->StartProfiling("1");
|
| @@ -267,7 +267,7 @@ TEST(CrashIfStoppingLastNonExistentProfile) {
|
| TEST(Issue1398) {
|
| TestSetup test_setup;
|
| LocalContext env;
|
| - i::Isolate* isolate = i::Isolate::Current();
|
| + i::Isolate* isolate = CcTest::i_isolate();
|
| i::HandleScope scope(isolate);
|
|
|
| i::Code* code = CreateCode(&env);
|
| @@ -309,7 +309,7 @@ TEST(Issue1398) {
|
| TEST(DeleteAllCpuProfiles) {
|
| CcTest::InitializeVM();
|
| TestSetup test_setup;
|
| - CpuProfiler* profiler = i::Isolate::Current()->cpu_profiler();
|
| + CpuProfiler* profiler = CcTest::i_isolate()->cpu_profiler();
|
| CHECK_EQ(0, profiler->GetProfilesCount());
|
| profiler->DeleteAllProfiles();
|
| CHECK_EQ(0, profiler->GetProfilesCount());
|
| @@ -1321,7 +1321,7 @@ TEST(IdleTime) {
|
| v8::Local<v8::String> profile_name = v8::String::New("my_profile");
|
| cpu_profiler->StartCpuProfiling(profile_name);
|
|
|
| - i::Isolate* isolate = i::Isolate::Current();
|
| + i::Isolate* isolate = CcTest::i_isolate();
|
| i::ProfilerEventsProcessor* processor = isolate->cpu_profiler()->processor();
|
| processor->AddCurrentStack(isolate);
|
|
|
|
|