Relaxed parameter types a bit.

Somehow these changes didn't make it into https://codereview.chromium.org/915583002 ... :-/

Review URL: https://codereview.chromium.org/919473005

Cr-Commit-Position: refs/heads/master@{#26567}
This commit is contained in:
svenpanne 2015-02-11 00:52:32 -08:00 committed by Commit bot
parent f2369fa335
commit 41e74ad4e8
3 changed files with 4 additions and 7 deletions

View File

@ -113,8 +113,7 @@ CompilationInfo::CompilationInfo(Handle<JSFunction> 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()),

View File

@ -427,9 +427,7 @@ class CompilationInfo {
protected:
CompilationInfo(Handle<SharedFunctionInfo> 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<JSFunction> 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,

View File

@ -74,7 +74,7 @@ TEST(TestLinkageJSFunctionIncoming) {
TEST(TestLinkageCodeStubIncoming) {
Isolate* isolate = CcTest::InitIsolateOnce();
CompilationInfoWithZone info(static_cast<HydrogenCodeStub*>(NULL), isolate);
CompilationInfoWithZone info(static_cast<CodeStub*>(NULL), isolate);
Linkage linkage(info.zone(), &info);
// TODO(titzer): test linkage creation with a bonafide code stub.
// this just checks current behavior.