Index: runtime/vm/assembler_arm.cc |
diff --git a/runtime/vm/assembler_arm.cc b/runtime/vm/assembler_arm.cc |
index 6367d4d3b331c5dc885ee5bbcf71d65a71b3f58e..abfb9f542e9907bc531b00ad158517ccb34b7dda 100644 |
--- a/runtime/vm/assembler_arm.cc |
+++ b/runtime/vm/assembler_arm.cc |
@@ -1966,13 +1966,18 @@ void Assembler::CompareClassId(Register object, |
} |
-void Assembler::LoadTaggedClassIdMayBeSmi(Register result, Register object) { |
+void Assembler::LoadClassIdMayBeSmi(Register result, Register object) { |
static const intptr_t kSmiCidSource = kSmiCid << RawObject::kClassIdTagPos; |
LoadImmediate(TMP, reinterpret_cast<int32_t>(&kSmiCidSource) + 1); |
tst(object, Operand(kSmiTagMask)); |
mov(TMP, Operand(object), NE); |
LoadClassId(result, TMP); |
+} |
+ |
+ |
+void Assembler::LoadTaggedClassIdMayBeSmi(Register result, Register object) { |
+ LoadClassIdMayBeSmi(result, object); |
SmiTag(result); |
} |