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

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

Issue 701543002: MIPS: [turbofan] Also optimize unsigned division by constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/mips/instruction-codes-mips.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/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/mips/macro-assembler-mips.h" 10 #include "src/mips/macro-assembler-mips.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 case kMipsSubOvf: 181 case kMipsSubOvf:
182 __ SubuAndCheckForOverflow(i.OutputRegister(), i.InputRegister(0), 182 __ SubuAndCheckForOverflow(i.OutputRegister(), i.InputRegister(0),
183 i.InputOperand(1), kCompareReg, kScratchReg); 183 i.InputOperand(1), kCompareReg, kScratchReg);
184 break; 184 break;
185 case kMipsMul: 185 case kMipsMul:
186 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 186 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
187 break; 187 break;
188 case kMipsMulHigh: 188 case kMipsMulHigh:
189 __ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 189 __ Mulh(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
190 break; 190 break;
191 case kMipsMulHighU:
192 __ Mulhu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
193 break;
191 case kMipsDiv: 194 case kMipsDiv:
192 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 195 __ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
193 break; 196 break;
194 case kMipsDivU: 197 case kMipsDivU:
195 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 198 __ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
196 break; 199 break;
197 case kMipsMod: 200 case kMipsMod:
198 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 201 __ Mod(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
199 break; 202 break;
200 case kMipsModU: 203 case kMipsModU:
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 } 962 }
960 } 963 }
961 MarkLazyDeoptSite(); 964 MarkLazyDeoptSite();
962 } 965 }
963 966
964 #undef __ 967 #undef __
965 968
966 } // namespace compiler 969 } // namespace compiler
967 } // namespace internal 970 } // namespace internal
968 } // namespace v8 971 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698