Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: test/cctest/test-cpu-profiler.cc

Issue 1423723002: Map v8::Function to JSReceiver + IsCallable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-compiler.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « test/cctest/test-compiler.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698