Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b7928af19361db20e754f564a6dfe7f02c1dc49f..0f11a977e096c8243f5b84d1e830fa338ae2d607 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10687,9 +10687,7 @@ void SharedFunctionInfo::DisableOptimization(BailoutReason reason) { |
if (code()->kind() == Code::FUNCTION) { |
code()->set_optimizable(false); |
} |
- PROFILE(GetIsolate(), |
- LogExistingFunction(Handle<SharedFunctionInfo>(this), |
- Handle<Code>(code()))); |
+ PROFILE(GetIsolate(), CodeDisableOptEvent(code(), this)); |
if (FLAG_trace_opt) { |
PrintF("[disabled optimization for "); |
ShortPrint(); |