OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <limits.h> | 5 #include <limits.h> |
6 #include <stdarg.h> | 6 #include <stdarg.h> |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #if V8_TARGET_ARCH_MIPS | 10 #if V8_TARGET_ARCH_MIPS |
(...skipping 3713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3724 break; | 3724 break; |
3725 case TLTU: | 3725 case TLTU: |
3726 do_interrupt = rs_u() < rt_u(); | 3726 do_interrupt = rs_u() < rt_u(); |
3727 break; | 3727 break; |
3728 case TEQ: | 3728 case TEQ: |
3729 do_interrupt = rs() == rt(); | 3729 do_interrupt = rs() == rt(); |
3730 break; | 3730 break; |
3731 case TNE: | 3731 case TNE: |
3732 do_interrupt = rs() != rt(); | 3732 do_interrupt = rs() != rt(); |
3733 break; | 3733 break; |
| 3734 case SYNC: |
| 3735 // TODO(palfia): Ignore sync instruction for now. |
| 3736 break; |
3734 // Conditional moves. | 3737 // Conditional moves. |
3735 case MOVN: | 3738 case MOVN: |
3736 if (rt()) { | 3739 if (rt()) { |
3737 set_register(rd_reg(), rs()); | 3740 set_register(rd_reg(), rs()); |
3738 TraceRegWr(rs()); | 3741 TraceRegWr(rs()); |
3739 } | 3742 } |
3740 break; | 3743 break; |
3741 case MOVCI: { | 3744 case MOVCI: { |
3742 uint32_t cc = get_instr()->FBccValue(); | 3745 uint32_t cc = get_instr()->FBccValue(); |
3743 uint32_t fcsr_cc = get_fcsr_condition_bit(cc); | 3746 uint32_t fcsr_cc = get_fcsr_condition_bit(cc); |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4605 | 4608 |
4606 | 4609 |
4607 #undef UNSUPPORTED | 4610 #undef UNSUPPORTED |
4608 | 4611 |
4609 } // namespace internal | 4612 } // namespace internal |
4610 } // namespace v8 | 4613 } // namespace v8 |
4611 | 4614 |
4612 #endif // USE_SIMULATOR | 4615 #endif // USE_SIMULATOR |
4613 | 4616 |
4614 #endif // V8_TARGET_ARCH_MIPS | 4617 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |