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
Object* ConstructStubCompiler::GetCode() {
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