Chromium Code Reviews| Index: src/ia32/lithium-ia32.cc |
| =================================================================== |
| --- src/ia32/lithium-ia32.cc (revision 12749) |
| +++ src/ia32/lithium-ia32.cc (working copy) |
| @@ -1779,7 +1779,7 @@ |
| Representation input_rep = value->representation(); |
| if (input_rep.IsDouble()) { |
| LOperand* reg = UseRegister(value); |
| - return DefineAsRegister(new(zone()) LClampDToUint8(reg)); |
| + return DefineFixed(new(zone()) LClampDToUint8(reg), eax); |
|
Yang
2012/10/19 09:29:45
I assume that you have to use EAX because SETcc ne
|
| } else if (input_rep.IsInteger32()) { |
| LOperand* reg = UseFixed(value, eax); |
| return DefineFixed(new(zone()) LClampIToUint8(reg), eax); |