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

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

Issue 654833002: [turbofan] Optimize division/modulus by constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months 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
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 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 break; 245 break;
246 case kArm64Bic32: 246 case kArm64Bic32:
247 __ Bic(i.OutputRegister32(), i.InputRegister32(0), i.InputOperand2_32(1)); 247 __ Bic(i.OutputRegister32(), i.InputRegister32(0), i.InputOperand2_32(1));
248 break; 248 break;
249 case kArm64Mul: 249 case kArm64Mul:
250 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); 250 __ Mul(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
251 break; 251 break;
252 case kArm64Mul32: 252 case kArm64Mul32:
253 __ Mul(i.OutputRegister32(), i.InputRegister32(0), i.InputRegister32(1)); 253 __ Mul(i.OutputRegister32(), i.InputRegister32(0), i.InputRegister32(1));
254 break; 254 break;
255 case kArm64Smull:
256 __ Smull(i.OutputRegister(), i.InputRegister32(0), i.InputRegister32(1));
257 break;
255 case kArm64Madd: 258 case kArm64Madd:
256 __ Madd(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 259 __ Madd(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
257 i.InputRegister(2)); 260 i.InputRegister(2));
258 break; 261 break;
259 case kArm64Madd32: 262 case kArm64Madd32:
260 __ Madd(i.OutputRegister32(), i.InputRegister32(0), i.InputRegister32(1), 263 __ Madd(i.OutputRegister32(), i.InputRegister32(0), i.InputRegister32(1),
261 i.InputRegister32(2)); 264 i.InputRegister32(2));
262 break; 265 break;
263 case kArm64Msub: 266 case kArm64Msub:
264 __ Msub(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 267 __ Msub(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 } 986 }
984 } 987 }
985 MarkLazyDeoptSite(); 988 MarkLazyDeoptSite();
986 } 989 }
987 990
988 #undef __ 991 #undef __
989 992
990 } // namespace compiler 993 } // namespace compiler
991 } // namespace internal 994 } // namespace internal
992 } // namespace v8 995 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/arm64/instruction-codes-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698