| 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
|
|
|