Index: test/cctest/compiler/test-linkage.cc |
diff --git a/test/cctest/compiler/test-linkage.cc b/test/cctest/compiler/test-linkage.cc |
index 59ef5fdd25d0cd34e7b6d1c38a555da1cfb8358b..6be3036c1c2667fd3ee889c392f4047ebfa85c52 100644 |
--- a/test/cctest/compiler/test-linkage.cc |
+++ b/test/cctest/compiler/test-linkage.cc |
@@ -43,7 +43,7 @@ static Handle<JSFunction> Compile(const char* source) { |
TEST(TestLinkageCreate) { |
HandleAndZoneScope handles; |
Handle<JSFunction> function = Compile("a + b"); |
- ParseInfo parse_info(handles.main_zone(), function); |
+ ParseInfo parse_info(handles.main_zone(), handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
CallDescriptor* descriptor = Linkage::ComputeIncoming(info.zone(), &info); |
CHECK(descriptor); |
@@ -59,7 +59,7 @@ TEST(TestLinkageJSFunctionIncoming) { |
Handle<JSFunction> function = |
Handle<JSFunction>::cast(v8::Utils::OpenHandle( |
*v8::Local<v8::Function>::Cast(CompileRun(sources[i])))); |
- ParseInfo parse_info(handles.main_zone(), function); |
+ ParseInfo parse_info(handles.main_zone(), handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
CallDescriptor* descriptor = Linkage::ComputeIncoming(info.zone(), &info); |
CHECK(descriptor); |
@@ -75,7 +75,7 @@ TEST(TestLinkageJSFunctionIncoming) { |
TEST(TestLinkageJSCall) { |
HandleAndZoneScope handles; |
Handle<JSFunction> function = Compile("a + c"); |
- ParseInfo parse_info(handles.main_zone(), function); |
+ ParseInfo parse_info(handles.main_zone(), handle(function->shared())); |
CompilationInfo info(&parse_info, function); |
for (int i = 0; i < 32; i++) { |