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

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

Issue 1698483002: [arm][arm64] Improve CountTrailingZero implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 4 years, 10 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
« no previous file with comments | « src/base/bits.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/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 case kArmUxtab: 694 case kArmUxtab:
695 __ uxtab(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 695 __ uxtab(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
696 i.InputInt32(2)); 696 i.InputInt32(2));
697 DCHECK_EQ(LeaveCC, i.OutputSBit()); 697 DCHECK_EQ(LeaveCC, i.OutputSBit());
698 break; 698 break;
699 case kArmUxtah: 699 case kArmUxtah:
700 __ uxtah(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 700 __ uxtah(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
701 i.InputInt32(2)); 701 i.InputInt32(2));
702 DCHECK_EQ(LeaveCC, i.OutputSBit()); 702 DCHECK_EQ(LeaveCC, i.OutputSBit());
703 break; 703 break;
704 case kArmRbit: {
705 CpuFeatureScope scope(masm(), ARMv7);
706 __ rbit(i.OutputRegister(), i.InputRegister(0));
707 DCHECK_EQ(LeaveCC, i.OutputSBit());
708 break;
709 }
704 case kArmClz: 710 case kArmClz:
705 __ clz(i.OutputRegister(), i.InputRegister(0)); 711 __ clz(i.OutputRegister(), i.InputRegister(0));
706 DCHECK_EQ(LeaveCC, i.OutputSBit()); 712 DCHECK_EQ(LeaveCC, i.OutputSBit());
707 break; 713 break;
708 case kArmCmp: 714 case kArmCmp:
709 __ cmp(i.InputRegister(0), i.InputOperand2(1)); 715 __ cmp(i.InputRegister(0), i.InputOperand2(1));
710 DCHECK_EQ(SetCC, i.OutputSBit()); 716 DCHECK_EQ(SetCC, i.OutputSBit());
711 break; 717 break;
712 case kArmCmn: 718 case kArmCmn:
713 __ cmn(i.InputRegister(0), i.InputOperand2(1)); 719 __ cmn(i.InputRegister(0), i.InputOperand2(1));
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 padding_size -= v8::internal::Assembler::kInstrSize; 1452 padding_size -= v8::internal::Assembler::kInstrSize;
1447 } 1453 }
1448 } 1454 }
1449 } 1455 }
1450 1456
1451 #undef __ 1457 #undef __
1452 1458
1453 } // namespace compiler 1459 } // namespace compiler
1454 } // namespace internal 1460 } // namespace internal
1455 } // namespace v8 1461 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/bits.h ('k') | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698