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 4021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4032 break; | 4032 break; |
4033 case ANDI: | 4033 case ANDI: |
4034 SetResult(rt_reg, rs & oe_imm16); | 4034 SetResult(rt_reg, rs & oe_imm16); |
4035 break; | 4035 break; |
4036 case ORI: | 4036 case ORI: |
4037 SetResult(rt_reg, rs | oe_imm16); | 4037 SetResult(rt_reg, rs | oe_imm16); |
4038 break; | 4038 break; |
4039 case XORI: | 4039 case XORI: |
4040 SetResult(rt_reg, rs ^ oe_imm16); | 4040 SetResult(rt_reg, rs ^ oe_imm16); |
4041 break; | 4041 break; |
4042 case LUI: | 4042 case LUI: |
balazs.kilvady
2015/11/26 17:10:50
Please use this kind of comment (like at branches)
| |
4043 SetResult(rt_reg, oe_imm16 << 16); | 4043 if (rs_reg != 0) { |
4044 // AUI | |
4045 DCHECK(IsMipsArchVariant(kMips32r6)); | |
4046 SetResult(rt_reg, rs + (se_imm16 << 16)); | |
4047 } else { | |
4048 // LUI | |
4049 SetResult(rt_reg, oe_imm16 << 16); | |
4050 } | |
4044 break; | 4051 break; |
4045 // ------------- Memory instructions. | 4052 // ------------- Memory instructions. |
4046 case LB: | 4053 case LB: |
4047 set_register(rt_reg, ReadB(rs + se_imm16)); | 4054 set_register(rt_reg, ReadB(rs + se_imm16)); |
4048 break; | 4055 break; |
4049 case LH: | 4056 case LH: |
4050 set_register(rt_reg, ReadH(rs + se_imm16, instr)); | 4057 set_register(rt_reg, ReadH(rs + se_imm16, instr)); |
4051 break; | 4058 break; |
4052 case LWL: { | 4059 case LWL: { |
4053 // al_offset is offset of the effective address within an aligned word. | 4060 // al_offset is offset of the effective address within an aligned word. |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4431 | 4438 |
4432 | 4439 |
4433 #undef UNSUPPORTED | 4440 #undef UNSUPPORTED |
4434 | 4441 |
4435 } // namespace internal | 4442 } // namespace internal |
4436 } // namespace v8 | 4443 } // namespace v8 |
4437 | 4444 |
4438 #endif // USE_SIMULATOR | 4445 #endif // USE_SIMULATOR |
4439 | 4446 |
4440 #endif // V8_TARGET_ARCH_MIPS | 4447 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |