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

Side by Side Diff: src/compiler/instruction-selector.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 | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/machine-operator.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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 case IrOpcode::kWord64Xor: 729 case IrOpcode::kWord64Xor:
730 return MarkAsWord64(node), VisitWord64Xor(node); 730 return MarkAsWord64(node), VisitWord64Xor(node);
731 case IrOpcode::kWord64Shl: 731 case IrOpcode::kWord64Shl:
732 return MarkAsWord64(node), VisitWord64Shl(node); 732 return MarkAsWord64(node), VisitWord64Shl(node);
733 case IrOpcode::kWord64Shr: 733 case IrOpcode::kWord64Shr:
734 return MarkAsWord64(node), VisitWord64Shr(node); 734 return MarkAsWord64(node), VisitWord64Shr(node);
735 case IrOpcode::kWord64Sar: 735 case IrOpcode::kWord64Sar:
736 return MarkAsWord64(node), VisitWord64Sar(node); 736 return MarkAsWord64(node), VisitWord64Sar(node);
737 case IrOpcode::kWord64Ror: 737 case IrOpcode::kWord64Ror:
738 return MarkAsWord64(node), VisitWord64Ror(node); 738 return MarkAsWord64(node), VisitWord64Ror(node);
739 case IrOpcode::kWord64Clz:
740 return MarkAsWord64(node), VisitWord64Clz(node);
739 case IrOpcode::kWord64Equal: 741 case IrOpcode::kWord64Equal:
740 return VisitWord64Equal(node); 742 return VisitWord64Equal(node);
741 case IrOpcode::kInt32Add: 743 case IrOpcode::kInt32Add:
742 return MarkAsWord32(node), VisitInt32Add(node); 744 return MarkAsWord32(node), VisitInt32Add(node);
743 case IrOpcode::kInt32AddWithOverflow: 745 case IrOpcode::kInt32AddWithOverflow:
744 return MarkAsWord32(node), VisitInt32AddWithOverflow(node); 746 return MarkAsWord32(node), VisitInt32AddWithOverflow(node);
745 case IrOpcode::kInt32Sub: 747 case IrOpcode::kInt32Sub:
746 return MarkAsWord32(node), VisitInt32Sub(node); 748 return MarkAsWord32(node), VisitInt32Sub(node);
747 case IrOpcode::kInt32SubWithOverflow: 749 case IrOpcode::kInt32SubWithOverflow:
748 return VisitInt32SubWithOverflow(node); 750 return VisitInt32SubWithOverflow(node);
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 966
965 void InstructionSelector::VisitWord64Shr(Node* node) { UNIMPLEMENTED(); } 967 void InstructionSelector::VisitWord64Shr(Node* node) { UNIMPLEMENTED(); }
966 968
967 969
968 void InstructionSelector::VisitWord64Sar(Node* node) { UNIMPLEMENTED(); } 970 void InstructionSelector::VisitWord64Sar(Node* node) { UNIMPLEMENTED(); }
969 971
970 972
971 void InstructionSelector::VisitWord64Ror(Node* node) { UNIMPLEMENTED(); } 973 void InstructionSelector::VisitWord64Ror(Node* node) { UNIMPLEMENTED(); }
972 974
973 975
976 void InstructionSelector::VisitWord64Clz(Node* node) { UNIMPLEMENTED(); }
977
978
974 void InstructionSelector::VisitWord64Equal(Node* node) { UNIMPLEMENTED(); } 979 void InstructionSelector::VisitWord64Equal(Node* node) { UNIMPLEMENTED(); }
975 980
976 981
977 void InstructionSelector::VisitInt64Add(Node* node) { UNIMPLEMENTED(); } 982 void InstructionSelector::VisitInt64Add(Node* node) { UNIMPLEMENTED(); }
978 983
979 984
980 void InstructionSelector::VisitInt64Sub(Node* node) { UNIMPLEMENTED(); } 985 void InstructionSelector::VisitInt64Sub(Node* node) { UNIMPLEMENTED(); }
981 986
982 987
983 void InstructionSelector::VisitInt64Mul(Node* node) { UNIMPLEMENTED(); } 988 void InstructionSelector::VisitInt64Mul(Node* node) { UNIMPLEMENTED(); }
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 return new (instruction_zone()) FrameStateDescriptor( 1343 return new (instruction_zone()) FrameStateDescriptor(
1339 instruction_zone(), state_info.type(), state_info.bailout_id(), 1344 instruction_zone(), state_info.type(), state_info.bailout_id(),
1340 state_info.state_combine(), parameters, locals, stack, 1345 state_info.state_combine(), parameters, locals, stack,
1341 state_info.shared_info(), outer_state); 1346 state_info.shared_info(), outer_state);
1342 } 1347 }
1343 1348
1344 1349
1345 } // namespace compiler 1350 } // namespace compiler
1346 } // namespace internal 1351 } // namespace internal
1347 } // namespace v8 1352 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698