| Index: runtime/vm/simulator_mips.cc
|
| diff --git a/runtime/vm/simulator_mips.cc b/runtime/vm/simulator_mips.cc
|
| index 36019a08a2ae76fe690606c4c2c7896801b25822..2e4c6149b5d8dc2291dbabe329824fe18ebcf097 100644
|
| --- a/runtime/vm/simulator_mips.cc
|
| +++ b/runtime/vm/simulator_mips.cc
|
| @@ -642,6 +642,16 @@ class Redirection {
|
| return reinterpret_cast<Redirection*>(addr_of_redirection);
|
| }
|
|
|
| + static uword FunctionForRedirect(uword address_of_break) {
|
| + Redirection* current;
|
| + for (current = list_; current != NULL; current = current->next_) {
|
| + if (current->address_of_break_instruction() == address_of_break) {
|
| + return current->external_function_;
|
| + }
|
| + }
|
| + return 0;
|
| + }
|
| +
|
| private:
|
| static const int32_t kRedirectInstruction =
|
| Instr::kBreakPointInstruction | (Instr::kRedirectCode << kBreakCodeShift);
|
| @@ -678,6 +688,11 @@ uword Simulator::RedirectExternalReference(uword function,
|
| }
|
|
|
|
|
| +uword Simulator::FunctionForRedirect(uword redirect) {
|
| + return Redirection::FunctionForRedirect(redirect);
|
| +}
|
| +
|
| +
|
| // Get the active Simulator for the current isolate.
|
| Simulator* Simulator::Current() {
|
| Simulator* simulator = Isolate::Current()->simulator();
|
|
|