| Index: runtime/vm/isolate.cc
|
| ===================================================================
|
| --- runtime/vm/isolate.cc (revision 19151)
|
| +++ runtime/vm/isolate.cc (working copy)
|
| @@ -388,6 +388,13 @@
|
|
|
|
|
| void Isolate::SetStackLimitFromCurrentTOS(uword stack_top_value) {
|
| +#ifdef USING_SIMULATOR
|
| + // Ignore passed-in native stack top and use Simulator stack top.
|
| + Simulator* sim = Simulator::Current(); // May allocate a simulator.
|
| + ASSERT(simulator() == sim); // This isolate's simulator is the current one.
|
| + stack_top_value = sim->StackTop();
|
| + // The overflow area is accounted for by the simulator.
|
| +#endif
|
| SetStackLimit(stack_top_value - GetSpecifiedStackSize());
|
| }
|
|
|
|
|