| Index: src/ic/ic-compiler.cc
|
| diff --git a/src/ic/ic-compiler.cc b/src/ic/ic-compiler.cc
|
| index 396eb23038d73b01881cd944e770f62f1b5eb935..9f1d87ac617247a7a63cde08804ba119b68f1035 100644
|
| --- a/src/ic/ic-compiler.cc
|
| +++ b/src/ic/ic-compiler.cc
|
| @@ -152,7 +152,8 @@ void PropertyICCompiler::ComputeKeyedStorePolymorphicHandlers(
|
| Handle<Code> PropertyICCompiler::CompileLoadInitialize(Code::Flags flags) {
|
| LoadIC::GenerateInitialize(masm());
|
| Handle<Code> code = GetCodeWithFlags(flags, "CompileLoadInitialize");
|
| - PROFILE(isolate(), CodeCreateEvent(Logger::LOAD_INITIALIZE_TAG, *code, 0));
|
| + PROFILE(isolate(), CodeCreateEvent(Logger::LOAD_INITIALIZE_TAG,
|
| + AbstractCode::cast(*code), 0));
|
| return code;
|
| }
|
|
|
| @@ -160,7 +161,8 @@ Handle<Code> PropertyICCompiler::CompileLoadInitialize(Code::Flags flags) {
|
| Handle<Code> PropertyICCompiler::CompileStoreInitialize(Code::Flags flags) {
|
| StoreIC::GenerateInitialize(masm());
|
| Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreInitialize");
|
| - PROFILE(isolate(), CodeCreateEvent(Logger::STORE_INITIALIZE_TAG, *code, 0));
|
| + PROFILE(isolate(), CodeCreateEvent(Logger::STORE_INITIALIZE_TAG,
|
| + AbstractCode::cast(*code), 0));
|
| return code;
|
| }
|
|
|
| @@ -168,8 +170,8 @@ Handle<Code> PropertyICCompiler::CompileStoreInitialize(Code::Flags flags) {
|
| Handle<Code> PropertyICCompiler::CompileStorePreMonomorphic(Code::Flags flags) {
|
| StoreIC::GeneratePreMonomorphic(masm());
|
| Handle<Code> code = GetCodeWithFlags(flags, "CompileStorePreMonomorphic");
|
| - PROFILE(isolate(),
|
| - CodeCreateEvent(Logger::STORE_PREMONOMORPHIC_TAG, *code, 0));
|
| + PROFILE(isolate(), CodeCreateEvent(Logger::STORE_PREMONOMORPHIC_TAG,
|
| + AbstractCode::cast(*code), 0));
|
| return code;
|
| }
|
|
|
| @@ -179,7 +181,8 @@ Handle<Code> PropertyICCompiler::CompileStoreGeneric(Code::Flags flags) {
|
| LanguageMode language_mode = StoreICState::GetLanguageMode(extra_state);
|
| GenerateRuntimeSetProperty(masm(), language_mode);
|
| Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreGeneric");
|
| - PROFILE(isolate(), CodeCreateEvent(Logger::STORE_GENERIC_TAG, *code, 0));
|
| + PROFILE(isolate(), CodeCreateEvent(Logger::STORE_GENERIC_TAG,
|
| + AbstractCode::cast(*code), 0));
|
| return code;
|
| }
|
|
|
| @@ -187,7 +190,8 @@ Handle<Code> PropertyICCompiler::CompileStoreGeneric(Code::Flags flags) {
|
| Handle<Code> PropertyICCompiler::CompileStoreMegamorphic(Code::Flags flags) {
|
| StoreIC::GenerateMegamorphic(masm());
|
| Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreMegamorphic");
|
| - PROFILE(isolate(), CodeCreateEvent(Logger::STORE_MEGAMORPHIC_TAG, *code, 0));
|
| + PROFILE(isolate(), CodeCreateEvent(Logger::STORE_MEGAMORPHIC_TAG,
|
| + AbstractCode::cast(*code), 0));
|
| return code;
|
| }
|
|
|
| @@ -198,7 +202,8 @@ Handle<Code> PropertyICCompiler::GetCode(Code::Kind kind, Code::StubType type,
|
| Code::Flags flags =
|
| Code::ComputeFlags(kind, state, extra_ic_state_, type, cache_holder());
|
| Handle<Code> code = GetCodeWithFlags(flags, name);
|
| - PROFILE(isolate(), CodeCreateEvent(log_kind(code), *code, *name));
|
| + PROFILE(isolate(),
|
| + CodeCreateEvent(log_kind(code), AbstractCode::cast(*code), *name));
|
| #ifdef DEBUG
|
| code->VerifyEmbeddedObjects();
|
| #endif
|
|
|