| Index: src/ia32/lithium-codegen-ia32.cc
 | 
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
 | 
| index da17e297637f01656e5f7708be1aebf376ff2bfb..5a420fe31916c7182305846fcf64decf1c099157 100644
 | 
| --- a/src/ia32/lithium-codegen-ia32.cc
 | 
| +++ b/src/ia32/lithium-codegen-ia32.cc
 | 
| @@ -1300,6 +1300,13 @@ void LCodeGen::DoShiftI(LShiftI* instr) {
 | 
|      ASSERT(ToRegister(right).is(ecx));
 | 
|  
 | 
|      switch (instr->op()) {
 | 
| +      case Token::ROR:
 | 
| +        __ ror_cl(ToRegister(left));
 | 
| +        if (instr->can_deopt()) {
 | 
| +          __ test(ToRegister(left), Immediate(0x80000000));
 | 
| +          DeoptimizeIf(not_zero, instr->environment());
 | 
| +        }
 | 
| +        break;
 | 
|        case Token::SAR:
 | 
|          __ sar_cl(ToRegister(left));
 | 
|          break;
 | 
| @@ -1321,6 +1328,14 @@ void LCodeGen::DoShiftI(LShiftI* instr) {
 | 
|      int value = ToInteger32(LConstantOperand::cast(right));
 | 
|      uint8_t shift_count = static_cast<uint8_t>(value & 0x1F);
 | 
|      switch (instr->op()) {
 | 
| +      case Token::ROR:
 | 
| +        if (shift_count == 0 && instr->can_deopt()) {
 | 
| +          __ test(ToRegister(left), Immediate(0x80000000));
 | 
| +          DeoptimizeIf(not_zero, instr->environment());
 | 
| +        } else {
 | 
| +          __ ror(ToRegister(left), shift_count);
 | 
| +        }
 | 
| +        break;
 | 
|        case Token::SAR:
 | 
|          if (shift_count != 0) {
 | 
|            __ sar(ToRegister(left), shift_count);
 | 
| 
 |