Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index a63255a931090e60b01e5caf48e2747cdc9a7c97..66c5a2ff7ec73874de7874280fd30d7299cfe55b 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13458,10 +13458,14 @@ Handle<Object> SharedFunctionInfo::GetSourceCodeHarmony() { |
bool SharedFunctionInfo::IsInlineable() { |
// Check that the function has a script associated with it. |
if (!script()->IsScript()) return false; |
+ if (GetIsolate()->is_precise_binary_code_coverage() && |
+ !has_reported_binary_coverage()) { |
+ // We may miss invocations if this function is inlined. |
+ return false; |
+ } |
return !optimization_disabled(); |
} |
- |
int SharedFunctionInfo::SourceSize() { |
return end_position() - start_position(); |
} |