Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: src/debug/debug.h

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Address comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/d8.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.h
diff --git a/src/debug/debug.h b/src/debug/debug.h
index 406e2fd1419bb979569441f1d9ebdc8d070b8424..843a8aed5c8645d5fc46dc946d25e8fe31190f69 100644
--- a/src/debug/debug.h
+++ b/src/debug/debug.h
@@ -336,6 +336,10 @@ class Debug {
void CreateBreakInfo(Handle<SharedFunctionInfo> shared);
Handle<DebugInfo> GetOrCreateDebugInfo(Handle<SharedFunctionInfo> shared);
+ void InstallCoverageInfo(Handle<SharedFunctionInfo> shared,
+ Handle<CoverageInfo> coverage_info);
+ void RemoveAllCoverageInfos();
+
template <typename C>
bool CompileToRevealInnerFunctions(C* compilable);
@@ -513,6 +517,10 @@ class Debug {
void PrintBreakLocation();
+ // Wraps logic for clearing and maybe freeing all debug infos.
+ typedef std::function<bool(Handle<DebugInfo>)> DebugInfoClearFunction;
+ void ClearAllDebugInfos(DebugInfoClearFunction clear_function);
+
void RemoveBreakInfoAndMaybeFree(Handle<DebugInfo> debug_info);
void FindDebugInfo(Handle<DebugInfo> debug_info, DebugInfoListNode** prev,
DebugInfoListNode** curr);
« no previous file with comments | « src/d8.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698