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

Unified Diff: src/objects.cc

Issue 2909893002: [debug] Untangle DebugInfo from break point support (Closed)
Patch Set: Port arm,arm64,ia32 Created 3 years, 7 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
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 07c7be1317a954839183e326c8cacaecd8c4fb03..7792293da6d3ab13ee8096594abe8e24100b6ba4 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13377,6 +13377,14 @@ void SharedFunctionInfo::SetScript(Handle<SharedFunctionInfo> shared,
shared->set_script(*script_object);
}
+bool SharedFunctionInfo::HasBreakInfo() const {
+ if (!HasDebugInfo()) return false;
+ DebugInfo* info = DebugInfo::cast(debug_info());
+ bool has_debug_info = info->HasBreakInfo();
Michael Starzinger 2017/05/31 13:14:58 nit: s/has_debug_info/has_break_info/
jgruber 2017/05/31 13:46:45 Done.
+ DCHECK_IMPLIES(has_debug_info, HasDebugCode());
+ return has_debug_info;
+}
+
DebugInfo* SharedFunctionInfo::GetDebugInfo() const {
DCHECK(HasDebugInfo());
return DebugInfo::cast(debug_info());
« src/debug/debug.cc ('K') | « src/ic/ic.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698