Chromium Code Reviews| Index: runtime/vm/intrinsifier_x64.cc |
| =================================================================== |
| --- runtime/vm/intrinsifier_x64.cc (revision 16233) |
| +++ runtime/vm/intrinsifier_x64.cc (working copy) |
| @@ -1392,8 +1392,9 @@ |
| // Overflow is signalled with minint. |
| Label fall_through; |
| // Check for overflow and that it fits into Smi. |
| - __ cmpq(RAX, Immediate(0xC000000000000000)); |
| - __ j(NEGATIVE, &fall_through, Assembler::kNearJump); |
| + __ movq(TMP, RAX); |
|
Vyacheslav Egorov (Google)
2012/12/18 11:45:10
I thought only Assembler could use TMP?
srdjan
2012/12/18 16:29:47
You are correct. Switched to using RCX instead.
|
| + __ shlq(TMP, Immediate(1)); |
| + __ j(OVERFLOW, &fall_through, Assembler::kNearJump); |
| __ SmiTag(RAX); |
| __ ret(); |
| __ Bind(&fall_through); |