~ubuntu-branches/ubuntu/saucy/nodejs/saucy-proposed

« back to all changes in this revision

Viewing changes to deps/v8/src/mips/disasm-mips.cc

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-08-14 00:16:46 UTC
  • mfrom: (7.1.40 sid)
  • Revision ID: package-import@ubuntu.com-20130814001646-bzlysfh8sd6mukbo
Tags: 0.10.15~dfsg1-4
* Update 2005 patch, adding a handful of tests that can fail on
  slow platforms.
* Add 1004 patch to fix test failures when writing NaN to buffer
  on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2011 the V8 project authors. All rights reserved.
 
1
// Copyright 2012 the V8 project authors. All rights reserved.
2
2
// Redistribution and use in source and binary forms, with or without
3
3
// modification, are permitted provided that the following conditions are
4
4
// met:
515
515
              Format(instr, "cvt.w.d 'fd, 'fs");
516
516
              break;
517
517
            case CVT_L_D: {
518
 
              if (mips32r2) {
 
518
              if (kArchVariant == kMips32r2) {
519
519
                Format(instr, "cvt.l.d 'fd, 'fs");
520
520
              } else {
521
521
                Unknown(instr);
526
526
              Format(instr, "trunc.w.d 'fd, 'fs");
527
527
              break;
528
528
            case TRUNC_L_D: {
529
 
              if (mips32r2) {
 
529
              if (kArchVariant == kMips32r2) {
530
530
                Format(instr, "trunc.l.d 'fd, 'fs");
531
531
              } else {
532
532
                Unknown(instr);
592
592
        case L:
593
593
          switch (instr->FunctionFieldRaw()) {
594
594
            case CVT_D_L: {
595
 
              if (mips32r2) {
 
595
              if (kArchVariant == kMips32r2) {
596
596
                Format(instr, "cvt.d.l 'fd, 'fs");
597
597
              } else {
598
598
                Unknown(instr);
600
600
              break;
601
601
            }
602
602
            case CVT_S_L: {
603
 
              if (mips32r2) {
 
603
              if (kArchVariant == kMips32r2) {
604
604
                Format(instr, "cvt.s.l 'fd, 'fs");
605
605
              } else {
606
606
                Unknown(instr);
636
636
          if (instr->RsValue() == 0) {
637
637
            Format(instr, "srl     'rd, 'rt, 'sa");
638
638
          } else {
639
 
            if (mips32r2) {
 
639
            if (kArchVariant == kMips32r2) {
640
640
              Format(instr, "rotr    'rd, 'rt, 'sa");
641
641
            } else {
642
642
              Unknown(instr);
653
653
          if (instr->SaValue() == 0) {
654
654
            Format(instr, "srlv    'rd, 'rt, 'rs");
655
655
          } else {
656
 
            if (mips32r2) {
 
656
            if (kArchVariant == kMips32r2) {
657
657
              Format(instr, "rotrv   'rd, 'rt, 'rs");
658
658
            } else {
659
659
              Unknown(instr);
770
770
    case SPECIAL3:
771
771
      switch (instr->FunctionFieldRaw()) {
772
772
        case INS: {
773
 
          if (mips32r2) {
 
773
          if (kArchVariant == kMips32r2) {
774
774
            Format(instr, "ins     'rt, 'rs, 'sa, 'ss2");
775
775
          } else {
776
776
            Unknown(instr);
778
778
          break;
779
779
        }
780
780
        case EXT: {
781
 
          if (mips32r2) {
 
781
          if (kArchVariant == kMips32r2) {
782
782
            Format(instr, "ext     'rt, 'rs, 'sa, 'ss1");
783
783
          } else {
784
784
            Unknown(instr);