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

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

Issue 1413463009: Implemented the Word64Clz TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a typing problem, and added mips64. Created 5 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
« 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/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 case kArm64Poke: { 767 case kArm64Poke: {
768 Operand operand(i.InputInt32(1) * kPointerSize); 768 Operand operand(i.InputInt32(1) * kPointerSize);
769 __ Poke(i.InputRegister(0), operand); 769 __ Poke(i.InputRegister(0), operand);
770 break; 770 break;
771 } 771 }
772 case kArm64PokePair: { 772 case kArm64PokePair: {
773 int slot = i.InputInt32(2) - 1; 773 int slot = i.InputInt32(2) - 1;
774 __ PokePair(i.InputRegister(1), i.InputRegister(0), slot * kPointerSize); 774 __ PokePair(i.InputRegister(1), i.InputRegister(0), slot * kPointerSize);
775 break; 775 break;
776 } 776 }
777 case kArm64Clz:
778 __ Clz(i.OutputRegister64(), i.InputRegister64(0));
779 break;
777 case kArm64Clz32: 780 case kArm64Clz32:
778 __ Clz(i.OutputRegister32(), i.InputRegister32(0)); 781 __ Clz(i.OutputRegister32(), i.InputRegister32(0));
779 break; 782 break;
780 case kArm64Cmp: 783 case kArm64Cmp:
781 __ Cmp(i.InputOrZeroRegister64(0), i.InputOperand(1)); 784 __ Cmp(i.InputOrZeroRegister64(0), i.InputOperand(1));
782 break; 785 break;
783 case kArm64Cmp32: 786 case kArm64Cmp32:
784 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1)); 787 __ Cmp(i.InputOrZeroRegister32(0), i.InputOperand2_32(1));
785 break; 788 break;
786 case kArm64Cmn: 789 case kArm64Cmn:
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 padding_size -= kInstructionSize; 1463 padding_size -= kInstructionSize;
1461 } 1464 }
1462 } 1465 }
1463 } 1466 }
1464 1467
1465 #undef __ 1468 #undef __
1466 1469
1467 } // namespace compiler 1470 } // namespace compiler
1468 } // namespace internal 1471 } // namespace internal
1469 } // namespace v8 1472 } // 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