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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/mips/constants-mips.h" | 9 #include "src/mips/constants-mips.h" |
10 | 10 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 case INS: | 271 case INS: |
272 case EXT: | 272 case EXT: |
273 return kRegisterType; | 273 return kRegisterType; |
274 default: | 274 default: |
275 return kUnsupported; | 275 return kUnsupported; |
276 } | 276 } |
277 break; | 277 break; |
278 case COP1: // Coprocessor instructions. | 278 case COP1: // Coprocessor instructions. |
279 switch (RsFieldRawNoAssert()) { | 279 switch (RsFieldRawNoAssert()) { |
280 case BC1: // Branch on coprocessor condition. | 280 case BC1: // Branch on coprocessor condition. |
281 case BC1EQZ: | |
282 case BC1NEZ: | |
283 return kImmediateType; | 281 return kImmediateType; |
284 default: | 282 default: |
285 return kRegisterType; | 283 return kRegisterType; |
286 } | 284 } |
287 break; | 285 break; |
288 case COP1X: | 286 case COP1X: |
289 return kRegisterType; | 287 return kRegisterType; |
290 // 16 bits Immediate type instructions. e.g.: addi dest, src, imm16. | 288 // 16 bits Immediate type instructions. e.g.: addi dest, src, imm16. |
291 case REGIMM: | 289 case REGIMM: |
292 case BEQ: | 290 case BEQ: |
293 case BNE: | 291 case BNE: |
294 case BLEZ: | 292 case BLEZ: |
295 case BGTZ: | 293 case BGTZ: |
296 case ADDI: | 294 case ADDI: |
297 case DADDI: | |
298 case ADDIU: | 295 case ADDIU: |
299 case SLTI: | 296 case SLTI: |
300 case SLTIU: | 297 case SLTIU: |
301 case ANDI: | 298 case ANDI: |
302 case ORI: | 299 case ORI: |
303 case XORI: | 300 case XORI: |
304 case LUI: | 301 case LUI: |
305 case BEQL: | 302 case BEQL: |
306 case BNEL: | 303 case BNEL: |
307 case BLEZL: | 304 case BLEZL: |
308 case BGTZL: | 305 case BGTZL: |
309 case BEQZC: | |
310 case BNEZC: | |
311 case LB: | 306 case LB: |
312 case LH: | 307 case LH: |
313 case LWL: | 308 case LWL: |
314 case LW: | 309 case LW: |
315 case LBU: | 310 case LBU: |
316 case LHU: | 311 case LHU: |
317 case LWR: | 312 case LWR: |
318 case SB: | 313 case SB: |
319 case SH: | 314 case SH: |
320 case SWL: | 315 case SWL: |
(...skipping 11 matching lines...) Expand all Loading... |
332 default: | 327 default: |
333 return kUnsupported; | 328 return kUnsupported; |
334 } | 329 } |
335 return kUnsupported; | 330 return kUnsupported; |
336 } | 331 } |
337 | 332 |
338 | 333 |
339 } } // namespace v8::internal | 334 } } // namespace v8::internal |
340 | 335 |
341 #endif // V8_TARGET_ARCH_MIPS | 336 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |