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

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

Issue 1693963004: Add a kSimd128 machine type for Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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/compiler/instruction.h ('k') | src/compiler/machine-operator.cc » ('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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 #include "src/compiler/state-values-utils.h" 9 #include "src/compiler/state-values-utils.h"
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 break; 157 break;
158 case MachineRepresentation::kWord64: 158 case MachineRepresentation::kWord64:
159 os << "|w64"; 159 os << "|w64";
160 break; 160 break;
161 case MachineRepresentation::kFloat32: 161 case MachineRepresentation::kFloat32:
162 os << "|f32"; 162 os << "|f32";
163 break; 163 break;
164 case MachineRepresentation::kFloat64: 164 case MachineRepresentation::kFloat64:
165 os << "|f64"; 165 os << "|f64";
166 break; 166 break;
167 case MachineRepresentation::kSimd128:
168 os << "|s128";
169 break;
167 case MachineRepresentation::kTagged: 170 case MachineRepresentation::kTagged:
168 os << "|t"; 171 os << "|t";
169 break; 172 break;
170 } 173 }
171 return os << "]"; 174 return os << "]";
172 } 175 }
173 case InstructionOperand::INVALID: 176 case InstructionOperand::INVALID:
174 return os << "(x)"; 177 return os << "(x)";
175 } 178 }
176 UNREACHABLE(); 179 UNREACHABLE();
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 static MachineRepresentation FilterRepresentation(MachineRepresentation rep) { 740 static MachineRepresentation FilterRepresentation(MachineRepresentation rep) {
738 switch (rep) { 741 switch (rep) {
739 case MachineRepresentation::kBit: 742 case MachineRepresentation::kBit:
740 case MachineRepresentation::kWord8: 743 case MachineRepresentation::kWord8:
741 case MachineRepresentation::kWord16: 744 case MachineRepresentation::kWord16:
742 return InstructionSequence::DefaultRepresentation(); 745 return InstructionSequence::DefaultRepresentation();
743 case MachineRepresentation::kWord32: 746 case MachineRepresentation::kWord32:
744 case MachineRepresentation::kWord64: 747 case MachineRepresentation::kWord64:
745 case MachineRepresentation::kFloat32: 748 case MachineRepresentation::kFloat32:
746 case MachineRepresentation::kFloat64: 749 case MachineRepresentation::kFloat64:
750 case MachineRepresentation::kSimd128:
747 case MachineRepresentation::kTagged: 751 case MachineRepresentation::kTagged:
748 return rep; 752 return rep;
749 case MachineRepresentation::kNone: 753 case MachineRepresentation::kNone:
750 break; 754 break;
751 } 755 }
752 UNREACHABLE(); 756 UNREACHABLE();
753 return MachineRepresentation::kNone; 757 return MachineRepresentation::kNone;
754 } 758 }
755 759
756 760
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 } 980 }
977 for (int i = 0; i < code.InstructionBlockCount(); i++) { 981 for (int i = 0; i < code.InstructionBlockCount(); i++) {
978 printable.sequence_->PrintBlock(printable.register_configuration_, i); 982 printable.sequence_->PrintBlock(printable.register_configuration_, i);
979 } 983 }
980 return os; 984 return os;
981 } 985 }
982 986
983 } // namespace compiler 987 } // namespace compiler
984 } // namespace internal 988 } // namespace internal
985 } // namespace v8 989 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698