Index: src/snapshot/code-serializer.cc |
diff --git a/src/snapshot/code-serializer.cc b/src/snapshot/code-serializer.cc |
index c8c20fcabb248aad6aa5d92bf0f35daa5337e1d9..8115090b0a39d8112e809ebc88384463a18480c2 100644 |
--- a/src/snapshot/code-serializer.cc |
+++ b/src/snapshot/code-serializer.cc |
@@ -189,8 +189,8 @@ MaybeHandle<SharedFunctionInfo> CodeSerializer::Deserialize( |
Script* script = Script::cast(result->script()); |
if (script->name()->IsString()) name = String::cast(script->name()); |
} |
- isolate->logger()->CodeCreateEvent(Logger::SCRIPT_TAG, |
- result->abstract_code(), *result, name); |
+ PROFILE(isolate, CodeCreateEvent(CodeEventListener::SCRIPT_TAG, |
+ result->abstract_code(), *result, name)); |
} |
return scope.CloseAndEscape(result); |
} |