OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 *carry_out = (result < 0); | 1491 *carry_out = (result < 0); |
1492 result = 0; | 1492 result = 0; |
1493 } else { | 1493 } else { |
1494 *carry_out = false; | 1494 *carry_out = false; |
1495 result = 0; | 1495 result = 0; |
1496 } | 1496 } |
1497 break; | 1497 break; |
1498 } | 1498 } |
1499 | 1499 |
1500 case ROR: { | 1500 case ROR: { |
1501 UNIMPLEMENTED(); | 1501 if (shift_amount == 0) { |
| 1502 *carry_out = c_flag_; |
| 1503 } else { |
| 1504 int32_t left = result >> shift_amount; |
| 1505 int32_t right = result << (32 - shift_amount); |
| 1506 result = right | left; |
| 1507 *carry_out = (result >> (shift_amount - 1)) & 1; |
| 1508 } |
1502 break; | 1509 break; |
1503 } | 1510 } |
1504 | 1511 |
1505 default: { | 1512 default: { |
1506 UNREACHABLE(); | 1513 UNREACHABLE(); |
1507 break; | 1514 break; |
1508 } | 1515 } |
1509 } | 1516 } |
1510 } | 1517 } |
1511 return result; | 1518 return result; |
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3384 uintptr_t address = *stack_slot; | 3391 uintptr_t address = *stack_slot; |
3385 set_register(sp, current_sp + sizeof(uintptr_t)); | 3392 set_register(sp, current_sp + sizeof(uintptr_t)); |
3386 return address; | 3393 return address; |
3387 } | 3394 } |
3388 | 3395 |
3389 } } // namespace v8::internal | 3396 } } // namespace v8::internal |
3390 | 3397 |
3391 #endif // USE_SIMULATOR | 3398 #endif // USE_SIMULATOR |
3392 | 3399 |
3393 #endif // V8_TARGET_ARCH_ARM | 3400 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |