Index: runtime/vm/flow_graph_compiler_arm64.cc |
=================================================================== |
--- runtime/vm/flow_graph_compiler_arm64.cc (revision 38283) |
+++ runtime/vm/flow_graph_compiler_arm64.cc (working copy) |
@@ -1246,8 +1246,8 @@ |
ASSERT(!arguments_descriptor.IsNull() && (arguments_descriptor.Length() > 0)); |
const MegamorphicCache& cache = |
MegamorphicCache::ZoneHandle(table->Lookup(name, arguments_descriptor)); |
- __ LoadFromOffset(R0, SP, (argument_count - 1) * kWordSize, PP); |
- __ LoadTaggedClassIdMayBeSmi(R0, R0); |
+ __ LoadFromOffset(R1, SP, (argument_count - 1) * kWordSize, PP); |
+ __ LoadTaggedClassIdMayBeSmi(R0, R1); |
// R0: class ID of the receiver (smi). |
__ LoadObject(R1, cache, PP); |