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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1405453003: CTZ instruction implemented as optional operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a bug when bmi1=false Created 5 years, 2 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/compiler/ia32/instruction-selector-ia32.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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 case IrOpcode::kWord32Shr: 604 case IrOpcode::kWord32Shr:
605 return MarkAsWord32(node), VisitWord32Shr(node); 605 return MarkAsWord32(node), VisitWord32Shr(node);
606 case IrOpcode::kWord32Sar: 606 case IrOpcode::kWord32Sar:
607 return MarkAsWord32(node), VisitWord32Sar(node); 607 return MarkAsWord32(node), VisitWord32Sar(node);
608 case IrOpcode::kWord32Ror: 608 case IrOpcode::kWord32Ror:
609 return MarkAsWord32(node), VisitWord32Ror(node); 609 return MarkAsWord32(node), VisitWord32Ror(node);
610 case IrOpcode::kWord32Equal: 610 case IrOpcode::kWord32Equal:
611 return VisitWord32Equal(node); 611 return VisitWord32Equal(node);
612 case IrOpcode::kWord32Clz: 612 case IrOpcode::kWord32Clz:
613 return MarkAsWord32(node), VisitWord32Clz(node); 613 return MarkAsWord32(node), VisitWord32Clz(node);
614 case IrOpcode::kWord32Ctz:
615 return MarkAsWord32(node), VisitWord32Ctz(node);
614 case IrOpcode::kWord64And: 616 case IrOpcode::kWord64And:
615 return MarkAsWord64(node), VisitWord64And(node); 617 return MarkAsWord64(node), VisitWord64And(node);
616 case IrOpcode::kWord64Or: 618 case IrOpcode::kWord64Or:
617 return MarkAsWord64(node), VisitWord64Or(node); 619 return MarkAsWord64(node), VisitWord64Or(node);
618 case IrOpcode::kWord64Xor: 620 case IrOpcode::kWord64Xor:
619 return MarkAsWord64(node), VisitWord64Xor(node); 621 return MarkAsWord64(node), VisitWord64Xor(node);
620 case IrOpcode::kWord64Shl: 622 case IrOpcode::kWord64Shl:
621 return MarkAsWord64(node), VisitWord64Shl(node); 623 return MarkAsWord64(node), VisitWord64Shl(node);
622 case IrOpcode::kWord64Shr: 624 case IrOpcode::kWord64Shr:
623 return MarkAsWord64(node), VisitWord64Shr(node); 625 return MarkAsWord64(node), VisitWord64Shr(node);
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { 1150 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) {
1149 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); 1151 inputs->push_back(OperandForDeopt(&g, input_node.node, kind));
1150 descriptor->SetType(value_index++, input_node.type); 1152 descriptor->SetType(value_index++, input_node.type);
1151 } 1153 }
1152 DCHECK(value_index == descriptor->GetSize()); 1154 DCHECK(value_index == descriptor->GetSize());
1153 } 1155 }
1154 1156
1155 } // namespace compiler 1157 } // namespace compiler
1156 } // namespace internal 1158 } // namespace internal
1157 } // namespace v8 1159 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698