Add code creation logging for construct stubs.
Otherwise, tick processor reports unknown code deletes / moves for them. Review URL: http://codereview.chromium.org/178060 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2806 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
07e1bb76c7
commit
4339205dd2
@ -1099,9 +1099,14 @@ Object* CallStubCompiler::GetCode(PropertyType type, String* name) {
|
|||||||
|
|
||||||
Object* ConstructStubCompiler::GetCode() {
|
Object* ConstructStubCompiler::GetCode() {
|
||||||
Code::Flags flags = Code::ComputeFlags(Code::STUB);
|
Code::Flags flags = Code::ComputeFlags(Code::STUB);
|
||||||
return GetCodeWithFlags(flags, "ConstructStub");
|
Object* result = GetCodeWithFlags(flags, "ConstructStub");
|
||||||
|
if (!result->IsFailure()) {
|
||||||
|
Code* code = Code::cast(result);
|
||||||
|
USE(code);
|
||||||
|
LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub"));
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} } // namespace v8::internal
|
} } // namespace v8::internal
|
||||||
|
Loading…
Reference in New Issue
Block a user