Index: runtime/vm/stack_frame.cc |
diff --git a/runtime/vm/stack_frame.cc b/runtime/vm/stack_frame.cc |
index f93111e41e411e7a8fd1075898fd605590c2ea1e..66031274181d85f9f9ab2365b5637661da869153 100644 |
--- a/runtime/vm/stack_frame.cc |
+++ b/runtime/vm/stack_frame.cc |
@@ -566,4 +566,15 @@ intptr_t InlinedFunctionsIterator::GetDeoptFpOffset() const { |
} |
+#if defined(DEBUG) |
+void ValidateFrames() { |
+ StackFrameIterator frames(StackFrameIterator::kValidateFrames); |
+ StackFrame* frame = frames.NextFrame(); |
+ while (frame != NULL) { |
+ frame = frames.NextFrame(); |
+ } |
+} |
+#endif |
+ |
+ |
} // namespace dart |