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

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

Issue 1135543002: [turbofan] Use sbfx in ARM64 instruction selector (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add anonymous namespace Created 5 years, 7 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 | « no previous file | src/compiler/arm64/instruction-codes-arm64.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/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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 break; 635 break;
636 case kArm64Sxtb32: 636 case kArm64Sxtb32:
637 __ Sxtb(i.OutputRegister32(), i.InputRegister32(0)); 637 __ Sxtb(i.OutputRegister32(), i.InputRegister32(0));
638 break; 638 break;
639 case kArm64Sxth32: 639 case kArm64Sxth32:
640 __ Sxth(i.OutputRegister32(), i.InputRegister32(0)); 640 __ Sxth(i.OutputRegister32(), i.InputRegister32(0));
641 break; 641 break;
642 case kArm64Sxtw: 642 case kArm64Sxtw:
643 __ Sxtw(i.OutputRegister(), i.InputRegister32(0)); 643 __ Sxtw(i.OutputRegister(), i.InputRegister32(0));
644 break; 644 break;
645 case kArm64Sbfx32:
646 __ Sbfx(i.OutputRegister32(), i.InputRegister32(0), i.InputInt5(1),
647 i.InputInt5(2));
648 break;
645 case kArm64Ubfx: 649 case kArm64Ubfx:
646 __ Ubfx(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), 650 __ Ubfx(i.OutputRegister(), i.InputRegister(0), i.InputInt6(1),
647 i.InputInt8(2)); 651 i.InputInt6(2));
648 break; 652 break;
649 case kArm64Ubfx32: 653 case kArm64Ubfx32:
650 __ Ubfx(i.OutputRegister32(), i.InputRegister32(0), i.InputInt8(1), 654 __ Ubfx(i.OutputRegister32(), i.InputRegister32(0), i.InputInt5(1),
651 i.InputInt8(2)); 655 i.InputInt5(2));
652 break; 656 break;
653 case kArm64Bfi: 657 case kArm64Bfi:
654 __ Bfi(i.OutputRegister(), i.InputRegister(1), i.InputInt6(2), 658 __ Bfi(i.OutputRegister(), i.InputRegister(1), i.InputInt6(2),
655 i.InputInt6(3)); 659 i.InputInt6(3));
656 break; 660 break;
657 case kArm64TestAndBranch32: 661 case kArm64TestAndBranch32:
658 case kArm64TestAndBranch: 662 case kArm64TestAndBranch:
659 // Pseudo instructions turned into tbz/tbnz in AssembleArchBranch. 663 // Pseudo instructions turned into tbz/tbnz in AssembleArchBranch.
660 break; 664 break;
661 case kArm64CompareAndBranch32: 665 case kArm64CompareAndBranch32:
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 } 1322 }
1319 } 1323 }
1320 MarkLazyDeoptSite(); 1324 MarkLazyDeoptSite();
1321 } 1325 }
1322 1326
1323 #undef __ 1327 #undef __
1324 1328
1325 } // namespace compiler 1329 } // namespace compiler
1326 } // namespace internal 1330 } // namespace internal
1327 } // namespace v8 1331 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-codes-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698