OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 261 } |
262 | 262 |
263 | 263 |
264 // Print 26-bit immediate value. | 264 // Print 26-bit immediate value. |
265 void Decoder::PrintCode(Instruction* instr) { | 265 void Decoder::PrintCode(Instruction* instr) { |
266 if (instr->OpcodeFieldRaw() != SPECIAL) | 266 if (instr->OpcodeFieldRaw() != SPECIAL) |
267 return; // Not a break or trap instruction. | 267 return; // Not a break or trap instruction. |
268 switch (instr->FunctionFieldRaw()) { | 268 switch (instr->FunctionFieldRaw()) { |
269 case BREAK: { | 269 case BREAK: { |
270 int32_t code = instr->Bits(25, 6); | 270 int32_t code = instr->Bits(25, 6); |
271 out_buffer_pos_ += OS::SNPrintF(out_buffer_ + out_buffer_pos_, | 271 out_buffer_pos_ += OS::SNPrintF(out_buffer_ + out_buffer_pos_, |
272 "0x%05x (%d)", code, code); | 272 "0x%05x (%d)", code, code); |
273 break; | 273 break; |
274 } | 274 } |
275 case TGE: | 275 case TGE: |
276 case TGEU: | 276 case TGEU: |
277 case TLT: | 277 case TLT: |
278 case TLTU: | 278 case TLTU: |
279 case TEQ: | 279 case TEQ: |
280 case TNE: { | 280 case TNE: { |
281 int32_t code = instr->Bits(15, 6); | 281 int32_t code = instr->Bits(15, 6); |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1014 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1015 } | 1015 } |
1016 } | 1016 } |
1017 | 1017 |
1018 | 1018 |
1019 #undef UNSUPPORTED | 1019 #undef UNSUPPORTED |
1020 | 1020 |
1021 } // namespace disasm | 1021 } // namespace disasm |
1022 | 1022 |
1023 #endif // V8_TARGET_ARCH_MIPS | 1023 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |