| Index: test/cctest/test-cpu-profiler.cc
|
| diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc
|
| index f7d1e1a5b1f26f5b75543657eeb2e5ed2eb243a5..ef3571a7d26770bf4e284e5fb643fe0571badd76 100644
|
| --- a/test/cctest/test-cpu-profiler.cc
|
| +++ b/test/cctest/test-cpu-profiler.cc
|
| @@ -134,8 +134,8 @@ i::Code* CreateCode(LocalContext* env) {
|
| "%s();\n", name_start, counter, name_start, name_start);
|
| CompileRun(script.start());
|
|
|
| - i::Handle<i::JSFunction> fun =
|
| - v8::Utils::OpenHandle(*GetFunction(**env, name_start));
|
| + i::Handle<i::JSFunction> fun = i::Handle<i::JSFunction>::cast(
|
| + v8::Utils::OpenHandle(*GetFunction(**env, name_start)));
|
| return fun->code();
|
| }
|
|
|
| @@ -1076,8 +1076,8 @@ TEST(TickLines) {
|
|
|
| CompileRun(script.start());
|
|
|
| - i::Handle<i::JSFunction> func =
|
| - v8::Utils::OpenHandle(*GetFunction(*env, func_name));
|
| + i::Handle<i::JSFunction> func = i::Handle<i::JSFunction>::cast(
|
| + v8::Utils::OpenHandle(*GetFunction(*env, func_name)));
|
| CHECK(func->shared());
|
| CHECK(func->shared()->code());
|
| i::Code* code = NULL;
|
|
|