Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 1444423002: MIPS64: [turbofan] Combine untagging shifts with Mul, Div and Mod. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler/osr.h" 9 #include "src/compiler/osr.h"
10 #include "src/mips/macro-assembler-mips.h" 10 #include "src/mips/macro-assembler-mips.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 break; 611 break;
612 case kMips64Mul: 612 case kMips64Mul:
613 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 613 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
614 break; 614 break;
615 case kMips64MulHigh: 615 case kMips64MulHigh:
616 __ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 616 __ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
617 break; 617 break;
618 case kMips64MulHighU: 618 case kMips64MulHighU:
619 __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 619 __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
620 break; 620 break;
621 case kMips64DMulHigh:
622 __ Dmulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
623 break;
621 case kMips64Div: 624 case kMips64Div:
622 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 625 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
623 break; 626 break;
624 case kMips64DivU: 627 case kMips64DivU:
625 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 628 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
626 break; 629 break;
627 case kMips64Mod: 630 case kMips64Mod:
628 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 631 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
629 break; 632 break;
630 case kMips64ModU: 633 case kMips64ModU:
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 padding_size -= v8::internal::Assembler::kInstrSize; 1691 padding_size -= v8::internal::Assembler::kInstrSize;
1689 } 1692 }
1690 } 1693 }
1691 } 1694 }
1692 1695
1693 #undef __ 1696 #undef __
1694 1697
1695 } // namespace compiler 1698 } // namespace compiler
1696 } // namespace internal 1699 } // namespace internal
1697 } // namespace v8 1700 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips64/instruction-codes-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698