| Index: runtime/vm/runtime_entry_x64.cc
|
| diff --git a/runtime/vm/runtime_entry_x64.cc b/runtime/vm/runtime_entry_x64.cc
|
| index df24e7065d9f525d55463b7dd65ab8d6e0305505..a6ff6359720afc29de6328385d3c5950eeb2e76a 100644
|
| --- a/runtime/vm/runtime_entry_x64.cc
|
| +++ b/runtime/vm/runtime_entry_x64.cc
|
| @@ -24,7 +24,9 @@ void RuntimeEntry::Call(Assembler* assembler, intptr_t argument_count) const {
|
| if (is_leaf()) {
|
| ASSERT(argument_count == this->argument_count());
|
| ExternalLabel label(GetEntryPoint());
|
| - __ CallCFunction(&label);
|
| + COMPILE_ASSERT(CallingConventions::kVolatileCpuRegisters & (1 << RAX));
|
| + __ LoadExternalLabel(RAX, &label, kNotPatchable);
|
| + __ CallCFunction(RAX);
|
| } else {
|
| // Argument count is not checked here, but in the runtime entry for a more
|
| // informative error message.
|
|
|