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

Unified Diff: src/objects-debug.cc

Issue 2230953002: Use a custom Struct for stack trace storage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks 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/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index 7d426a045eb9b2584e22e207ee0607ca39191e7a..1b722efc5ea3fda6ce45389eb77ec6c059e6a95b 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -1016,6 +1016,17 @@ void Script::ScriptVerify() {
VerifyPointer(line_ends());
}
+void StackTraceFrame::StackTraceFrameVerify() {
+ CHECK(IsStackTraceFrame());
+ VerifyPointer(abstract_code());
+ if (IsWasmFrame()) {
+ VerifyPointer(wasm_object());
+ } else {
+ DCHECK(IsJavaScriptFrame());
+ VerifyPointer(receiver());
+ VerifyPointer(function());
+ }
+}
void NormalizedMapCache::NormalizedMapCacheVerify() {
FixedArray::cast(this)->FixedArrayVerify();
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698