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(); |