Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
| 7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
| 8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
| 9 #include "src/mips/macro-assembler-mips.h" | 9 #include "src/mips/macro-assembler-mips.h" |
| 10 #include "src/scopes.h" | 10 #include "src/scopes.h" |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 614 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); | 614 __ trunc_w_d(scratch, i.InputDoubleRegister(0)); |
| 615 __ mfc1(i.OutputRegister(), scratch); | 615 __ mfc1(i.OutputRegister(), scratch); |
| 616 break; | 616 break; |
| 617 } | 617 } |
| 618 case kMipsTruncUwD: { | 618 case kMipsTruncUwD: { |
| 619 FPURegister scratch = kScratchDoubleReg; | 619 FPURegister scratch = kScratchDoubleReg; |
| 620 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. | 620 // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |
| 621 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); | 621 __ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
| 622 break; | 622 break; |
| 623 } | 623 } |
| 624 case kMipsFmoveLowUwD: | |
| 625 __ FmoveLow(i.OutputRegister(), i.InputDoubleRegister(0)); | |
| 626 break; | |
| 627 case kMipsFmoveLowDUw: | |
| 628 if (CpuFeatures::IsSupported(FP64FPU)) { | |
|
dusmil.imgtec
2015/03/05 14:58:21
The selection is not good, you forced runtime chec
balazs.kilvady
2015/03/05 17:25:55
Done.
| |
| 629 __ mfhc1(at, i.OutputDoubleRegister()); | |
| 630 } | |
| 631 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); | |
| 632 if (CpuFeatures::IsSupported(FP64FPU)) { | |
| 633 __ mthc1(at, i.OutputDoubleRegister()); | |
| 634 } | |
| 635 break; | |
| 636 case kMipsFmoveHighUwD: | |
| 637 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); | |
| 638 break; | |
| 639 case kMipsFmoveHighDUw: | |
| 640 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); | |
| 641 break; | |
| 624 // ... more basic instructions ... | 642 // ... more basic instructions ... |
| 625 | 643 |
| 626 case kMipsLbu: | 644 case kMipsLbu: |
| 627 __ lbu(i.OutputRegister(), i.MemoryOperand()); | 645 __ lbu(i.OutputRegister(), i.MemoryOperand()); |
| 628 break; | 646 break; |
| 629 case kMipsLb: | 647 case kMipsLb: |
| 630 __ lb(i.OutputRegister(), i.MemoryOperand()); | 648 __ lb(i.OutputRegister(), i.MemoryOperand()); |
| 631 break; | 649 break; |
| 632 case kMipsSb: | 650 case kMipsSb: |
| 633 __ sb(i.InputRegister(2), i.MemoryOperand()); | 651 __ sb(i.InputRegister(2), i.MemoryOperand()); |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1205 } | 1223 } |
| 1206 } | 1224 } |
| 1207 MarkLazyDeoptSite(); | 1225 MarkLazyDeoptSite(); |
| 1208 } | 1226 } |
| 1209 | 1227 |
| 1210 #undef __ | 1228 #undef __ |
| 1211 | 1229 |
| 1212 } // namespace compiler | 1230 } // namespace compiler |
| 1213 } // namespace internal | 1231 } // namespace internal |
| 1214 } // namespace v8 | 1232 } // namespace v8 |
| OLD | NEW |