Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 392343002: Cleanup of class id loading sequences. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698