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

Unified Diff: src/objects.cc

Issue 1846183002: Add assertions to FrameSummary and Code::SourcePosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 9 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/frames.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index a6b3edef56f8953d69dbf16602ad6a03bedee366..b525222d82d3b7033402fc8b6e174b15fc8c942a 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -14057,6 +14057,8 @@ int Code::SourcePosition(int code_offset) {
}
it.next();
}
+ DCHECK(kind() == FUNCTION || is_optimized_code() && is_turbofanned() ||
+ is_wasm_code() || position == RelocInfo::kNoPosition);
return position;
}
« no previous file with comments | « src/frames.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698