Reviewers: Søren Gjesse, Description: Add code creation logging for construct stubs.
Otherwise, tick processor reports unknown code deletes / moves for them. Please review this at http://codereview.chromium.org/178060 Affected files: M src/stub-cache.cc Index: src/stub-cache.cc diff --git a/src/stub-cache.cc b/src/stub-cache.cc index a719f29cfc4cd42377645fcc3fca50b5be158be8..2906c22927850a1cb9453a036c37a0f0034bb5a7 100644 --- a/src/stub-cache.cc +++ b/src/stub-cache.cc @@ -1099,9 +1099,14 @@ Object* CallStubCompiler::GetCode(PropertyType type, String* name) { 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 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
