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

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

Issue 697663003: [turbofan] Also optimize unsigned division by constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Slight improvement 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 | « src/arm64/macro-assembler-arm64-inl.h ('k') | src/compiler/arm/instruction-codes-arm.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 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 case kArmSmmul: 242 case kArmSmmul:
243 __ smmul(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); 243 __ smmul(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
244 DCHECK_EQ(LeaveCC, i.OutputSBit()); 244 DCHECK_EQ(LeaveCC, i.OutputSBit());
245 break; 245 break;
246 case kArmSmmla: 246 case kArmSmmla:
247 __ smmla(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 247 __ smmla(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
248 i.InputRegister(2)); 248 i.InputRegister(2));
249 DCHECK_EQ(LeaveCC, i.OutputSBit()); 249 DCHECK_EQ(LeaveCC, i.OutputSBit());
250 break; 250 break;
251 case kArmUmull:
252 __ umull(i.OutputRegister(0), i.OutputRegister(1), i.InputRegister(0),
253 i.InputRegister(1), i.OutputSBit());
254 break;
251 case kArmSdiv: { 255 case kArmSdiv: {
252 CpuFeatureScope scope(masm(), SUDIV); 256 CpuFeatureScope scope(masm(), SUDIV);
253 __ sdiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); 257 __ sdiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
254 DCHECK_EQ(LeaveCC, i.OutputSBit()); 258 DCHECK_EQ(LeaveCC, i.OutputSBit());
255 break; 259 break;
256 } 260 }
257 case kArmUdiv: { 261 case kArmUdiv: {
258 CpuFeatureScope scope(masm(), SUDIV); 262 CpuFeatureScope scope(masm(), SUDIV);
259 __ udiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); 263 __ udiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
260 DCHECK_EQ(LeaveCC, i.OutputSBit()); 264 DCHECK_EQ(LeaveCC, i.OutputSBit());
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 } 946 }
943 } 947 }
944 MarkLazyDeoptSite(); 948 MarkLazyDeoptSite();
945 } 949 }
946 950
947 #undef __ 951 #undef __
948 952
949 } // namespace compiler 953 } // namespace compiler
950 } // namespace internal 954 } // namespace internal
951 } // namespace v8 955 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64-inl.h ('k') | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698