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

Unified Diff: src/objects-inl.h

Issue 2237423002: [debugger] PrepareFunctionForBreakPoints handles both fcg code and bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/debug/debug.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index bc21f8eef5821477a0a6eb601642ace7decfeab9..7e4ba3ab098a99f4b8405400f068adb4add5f6b1 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6172,8 +6172,8 @@ DebugInfo* SharedFunctionInfo::GetDebugInfo() {
bool SharedFunctionInfo::HasDebugCode() {
- return HasBytecodeArray() ||
- (HasBaselineCode() && code()->has_debug_break_slots());
+ if (HasBaselineCode()) return code()->has_debug_break_slots();
+ return HasBytecodeArray();
Michael Starzinger 2016/08/12 08:27:23 Just for my own confirmation, this should be the s
Yang 2016/08/12 08:31:27 Yes. What it says is: if we have fcg code, it need
}
« no previous file with comments | « src/debug/debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698