| Index: runtime/vm/stub_code_arm64.cc
|
| diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
|
| index cb31d8e167828f4d1eeacce1e5c7193c7cd654c1..15b7e0fc348c4a7ecea3d0beea552b204aa90a63 100644
|
| --- a/runtime/vm/stub_code_arm64.cc
|
| +++ b/runtime/vm/stub_code_arm64.cc
|
| @@ -2106,7 +2106,8 @@ void StubCode::EmitMegamorphicLookup(Assembler* assembler) {
|
| __ ldr(R1, FieldAddress(R5, MegamorphicCache::mask_offset()));
|
| // R2: cache buckets array.
|
| // R1: mask.
|
| - __ mov(R3, R0);
|
| + __ LoadImmediate(TMP, MegamorphicCache::kSpreadFactor);
|
| + __ mul(R3, R0, TMP);
|
| // R3: probe.
|
|
|
| Label loop, update, load_target_function;
|
|
|