Chromium Code Reviews| Index: runtime/vm/simulator_arm.cc |
| =================================================================== |
| --- runtime/vm/simulator_arm.cc (revision 43776) |
| +++ runtime/vm/simulator_arm.cc (working copy) |
| @@ -3856,14 +3856,12 @@ |
| } |
| ASSERT(buf != NULL); |
| + |
|
zra
2015/02/17 19:45:24
rm extra whitespace
koda
2015/02/17 20:01:14
Done.
|
| // The C++ caller has not cleaned up the stack memory of C++ frames. |
| // 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)); |