Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 0a151f4c60a63ce1698ea1aa2c80b70c4cd1dc18..644b04a78a752d4c67c90b8b5594a00386dcc79e 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -1721,13 +1721,16 @@ TEST(SerializeInternalReference) { |
// There are at least 6 internal references. |
int mask = RelocInfo::ModeMask(RelocInfo::INTERNAL_REFERENCE) | |
RelocInfo::ModeMask(RelocInfo::INTERNAL_REFERENCE_ENCODED); |
- RelocIterator it(v8::Utils::OpenHandle(*foo)->code(), mask); |
+ RelocIterator it( |
+ Handle<JSFunction>::cast(v8::Utils::OpenHandle(*foo))->code(), mask); |
for (int i = 0; i < 6; ++i) { |
CHECK(!it.done()); |
it.next(); |
} |
- CHECK(v8::Utils::OpenHandle(*foo)->code()->is_turbofanned()); |
+ CHECK(Handle<JSFunction>::cast(v8::Utils::OpenHandle(*foo)) |
+ ->code() |
+ ->is_turbofanned()); |
CHECK_EQ(11, CompileRun("foo(0)") |
->Int32Value(isolate->GetCurrentContext()) |
.FromJust()); |