| Index: runtime/vm/runtime_entry.cc
|
| diff --git a/runtime/vm/runtime_entry.cc b/runtime/vm/runtime_entry.cc
|
| index a0826367b1f9d067cadeca01c6fed8975d0e61d3..68b2fd74923a7bda4e133cfe194e75087bcadc3f 100644
|
| --- a/runtime/vm/runtime_entry.cc
|
| +++ b/runtime/vm/runtime_entry.cc
|
| @@ -10,6 +10,17 @@
|
|
|
| namespace dart {
|
|
|
| +#if defined(TESTING) || defined(DEBUG)
|
| +void VerifyOnTransition() {
|
| + Thread* thread = Thread::Current();
|
| + TransitionGeneratedToVM transition(thread);
|
| + thread->isolate()->heap()->WaitForSweeperTasks();
|
| + SafepointOperationScope safepoint_scope(thread);
|
| + VerifyPointersVisitor::VerifyPointers();
|
| + thread->isolate()->heap()->Verify();
|
| +}
|
| +#endif
|
| +
|
|
|
| // Add function to a class and that class to the class dictionary so that
|
| // frame walking can be used.
|
|
|