| Index: runtime/vm/simulator_arm.cc
|
| ===================================================================
|
| --- runtime/vm/simulator_arm.cc (revision 43776)
|
| +++ runtime/vm/simulator_arm.cc (working copy)
|
| @@ -3860,10 +3860,7 @@
|
| // Prepare for unwinding frames by destroying all the stack resources
|
| // in the previous C++ frames.
|
| uword native_sp = buf->native_sp();
|
| - while (isolate->top_resource() != NULL &&
|
| - (reinterpret_cast<uword>(isolate->top_resource()) < native_sp)) {
|
| - isolate->top_resource()->~StackResource();
|
| - }
|
| + StackResource::Unwind(isolate, native_sp);
|
|
|
| // Unwind the C++ stack and continue simulation in the target frame.
|
| set_register(PC, static_cast<int32_t>(pc));
|
|
|