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

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

Issue 478233002: [arm] Recognize comparisons of shifts with zero. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/compiler/arm/instruction-selector-arm.cc » ('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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 DCHECK_EQ(LeaveCC, i.OutputSBit()); 191 DCHECK_EQ(LeaveCC, i.OutputSBit());
192 break; 192 break;
193 } 193 }
194 case kArmUdiv: { 194 case kArmUdiv: {
195 CpuFeatureScope scope(masm(), SUDIV); 195 CpuFeatureScope scope(masm(), SUDIV);
196 __ udiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); 196 __ udiv(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1));
197 DCHECK_EQ(LeaveCC, i.OutputSBit()); 197 DCHECK_EQ(LeaveCC, i.OutputSBit());
198 break; 198 break;
199 } 199 }
200 case kArmMov: 200 case kArmMov:
201 __ Move(i.OutputRegister(), i.InputOperand2(0)); 201 __ Move(i.OutputRegister(), i.InputOperand2(0), i.OutputSBit());
202 DCHECK_EQ(LeaveCC, i.OutputSBit());
203 break; 202 break;
204 case kArmMvn: 203 case kArmMvn:
205 __ mvn(i.OutputRegister(), i.InputOperand2(0), i.OutputSBit()); 204 __ mvn(i.OutputRegister(), i.InputOperand2(0), i.OutputSBit());
206 break; 205 break;
207 case kArmOrr: 206 case kArmOrr:
208 __ orr(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 207 __ orr(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
209 i.OutputSBit()); 208 i.OutputSBit());
210 break; 209 break;
211 case kArmEor: 210 case kArmEor:
212 __ eor(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 211 __ eor(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 826
828 void CodeGenerator::AddNopForSmiCodeInlining() { 827 void CodeGenerator::AddNopForSmiCodeInlining() {
829 // On 32-bit ARM we do not insert nops for inlined Smi code. 828 // On 32-bit ARM we do not insert nops for inlined Smi code.
830 UNREACHABLE(); 829 UNREACHABLE();
831 } 830 }
832 831
833 #undef __ 832 #undef __
834 } 833 }
835 } 834 }
836 } // namespace v8::internal::compiler 835 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698