Chromium Code Reviews| Index: runtime/vm/assembler_x64.cc |
| =================================================================== |
| --- runtime/vm/assembler_x64.cc (revision 27784) |
| +++ runtime/vm/assembler_x64.cc (working copy) |
| @@ -2227,7 +2227,9 @@ |
| bool Assembler::CanLoadFromObjectPool(const Object& object) { |
| // TODO(zra, kmillikin): Move the use of large Smis into the constant pool. |
|
Florian Schneider
2013/09/25 14:13:28
Update the TODO comment?
zra
2013/09/25 15:27:07
Done.
|
| if (object.IsSmi()) { |
| - return false; |
| + // If the raw Smi does not fit into a 32-bit signed int, then we'll keep |
|
Florian Schneider
2013/09/25 14:13:28
s/Smi/smi
zra
2013/09/25 15:27:07
Done.
|
| + // the raw value in the object pool. |
| + return !Utils::IsInt(32, reinterpret_cast<int64_t>(object.raw())); |
| } |
| ASSERT(object.IsNotTemporaryScopedHandle()); |
| ASSERT(object.IsOld()); |