| Index: runtime/vm/runtime_entry_arm64.cc
|
| ===================================================================
|
| --- runtime/vm/runtime_entry_arm64.cc (revision 36919)
|
| +++ runtime/vm/runtime_entry_arm64.cc (working copy)
|
| @@ -40,7 +40,10 @@
|
| if (is_leaf()) {
|
| ASSERT(argument_count == this->argument_count());
|
| ExternalLabel label(entry);
|
| + // Cache the stack pointer in a callee-saved register.
|
| + __ mov(R26, SP);
|
| __ BranchLink(&label, kNoPP);
|
| + __ mov(SP, R26);
|
| } else {
|
| // Argument count is not checked here, but in the runtime entry for a more
|
| // informative error message.
|
|
|