diff --git a/src/compiler.cc b/src/compiler.cc index 8961debaab..5d605fd3e2 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -113,8 +113,7 @@ CompilationInfo::CompilationInfo(Handle closure, Zone* zone) } -CompilationInfo::CompilationInfo(HydrogenCodeStub* stub, Isolate* isolate, - Zone* zone) +CompilationInfo::CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone) : flags_(kLazy | kThisHasUses), source_stream_(NULL), osr_ast_id_(BailoutId::None()), diff --git a/src/compiler.h b/src/compiler.h index 381eb2a759..076467a7f2 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -427,9 +427,7 @@ class CompilationInfo { protected: CompilationInfo(Handle shared_info, Zone* zone); - CompilationInfo(HydrogenCodeStub* stub, - Isolate* isolate, - Zone* zone); + CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone); CompilationInfo(ScriptCompiler::ExternalSourceStream* source_stream, ScriptCompiler::StreamedSource::Encoding encoding, Isolate* isolate, Zone* zone); @@ -562,7 +560,7 @@ class CompilationInfoWithZone: public CompilationInfo { : CompilationInfo(shared_info, &zone_) {} explicit CompilationInfoWithZone(Handle closure) : CompilationInfo(closure, &zone_) {} - CompilationInfoWithZone(HydrogenCodeStub* stub, Isolate* isolate) + CompilationInfoWithZone(CodeStub* stub, Isolate* isolate) : CompilationInfo(stub, isolate, &zone_) {} CompilationInfoWithZone(ScriptCompiler::ExternalSourceStream* stream, ScriptCompiler::StreamedSource::Encoding encoding, diff --git a/test/cctest/compiler/test-linkage.cc b/test/cctest/compiler/test-linkage.cc index 961803d85a..9136ca4276 100644 --- a/test/cctest/compiler/test-linkage.cc +++ b/test/cctest/compiler/test-linkage.cc @@ -74,7 +74,7 @@ TEST(TestLinkageJSFunctionIncoming) { TEST(TestLinkageCodeStubIncoming) { Isolate* isolate = CcTest::InitIsolateOnce(); - CompilationInfoWithZone info(static_cast(NULL), isolate); + CompilationInfoWithZone info(static_cast(NULL), isolate); Linkage linkage(info.zone(), &info); // TODO(titzer): test linkage creation with a bonafide code stub. // this just checks current behavior.