Index: runtime/vm/assembler_x64.cc |
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc |
index 02f85df28f4f56b83919f123968bdf7f207599e1..67b61884034c61dd217580a1f5db4e9606872748 100644 |
--- a/runtime/vm/assembler_x64.cc |
+++ b/runtime/vm/assembler_x64.cc |
@@ -3793,7 +3793,7 @@ void Assembler::SmiUntagOrCheckClass(Register object, |
} |
-void Assembler::LoadTaggedClassIdMayBeSmi(Register result, Register object) { |
+void Assembler::LoadClassIdMayBeSmi(Register result, Register object) { |
ASSERT(result != object); |
// Load up a null object. We only need it so we can use LoadClassId on it in |
@@ -3810,6 +3810,11 @@ void Assembler::LoadTaggedClassIdMayBeSmi(Register result, Register object) { |
movq(object, Immediate(kSmiCid)); |
// If object is a Smi, move the Smi cid into result. o/w leave alone. |
cmoveq(result, object); |
+} |
+ |
+ |
+void Assembler::LoadTaggedClassIdMayBeSmi(Register result, Register object) { |
+ LoadClassIdMayBeSmi(result, object); |
// Finally, tag the result. |
SmiTag(result); |
} |