Chromium Code Reviews| 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()); |