Chromium Code Reviews| Index: runtime/vm/assembler_x64.cc |
| =================================================================== |
| --- runtime/vm/assembler_x64.cc (revision 9813) |
| +++ runtime/vm/assembler_x64.cc (working copy) |
| @@ -1510,8 +1510,12 @@ |
| void Assembler::StoreObject(const Address& dst, const Object& object) { |
| - LoadObject(TMP, object); |
| - movq(dst, TMP); |
| + if (object.IsSmi()) { |
| + movq(dst, Immediate(reinterpret_cast<int64_t>(object.raw()))); |
| + } else { |
| + LoadObject(TMP, object); |
| + movq(dst, TMP); |
| + } |
| } |