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

Side by Side Diff: src/compiler/simplified-lowering.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/representation-change.cc ('k') | src/compiler/x64/instruction-selector-x64.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/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 case MachineRepresentation::kFloat32: 135 case MachineRepresentation::kFloat32:
136 return UseInfo::Float32(); 136 return UseInfo::Float32();
137 case MachineRepresentation::kWord64: 137 case MachineRepresentation::kWord64:
138 return UseInfo::TruncatingWord64(); 138 return UseInfo::TruncatingWord64();
139 case MachineRepresentation::kWord8: 139 case MachineRepresentation::kWord8:
140 case MachineRepresentation::kWord16: 140 case MachineRepresentation::kWord16:
141 case MachineRepresentation::kWord32: 141 case MachineRepresentation::kWord32:
142 return UseInfo::TruncatingWord32(); 142 return UseInfo::TruncatingWord32();
143 case MachineRepresentation::kBit: 143 case MachineRepresentation::kBit:
144 return UseInfo::Bool(); 144 return UseInfo::Bool();
145 case MachineRepresentation::kSimd128: // Fall through.
145 case MachineRepresentation::kNone: 146 case MachineRepresentation::kNone:
146 break; 147 break;
147 } 148 }
148 UNREACHABLE(); 149 UNREACHABLE();
149 return UseInfo::None(); 150 return UseInfo::None();
150 } 151 }
151 152
152 153
153 UseInfo UseInfoForBasePointer(const FieldAccess& access) { 154 UseInfo UseInfoForBasePointer(const FieldAccess& access) {
154 return access.tag() != 0 ? UseInfo::AnyTagged() : UseInfo::PointerInt(); 155 return access.tag() != 0 ? UseInfo::AnyTagged() : UseInfo::PointerInt();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 r2 == MachineRepresentation::kTagged; 193 r2 == MachineRepresentation::kTagged;
193 case MachineRepresentation::kWord64: 194 case MachineRepresentation::kWord64:
194 return r2 == MachineRepresentation::kWord64; 195 return r2 == MachineRepresentation::kWord64;
195 case MachineRepresentation::kFloat32: 196 case MachineRepresentation::kFloat32:
196 return r2 == MachineRepresentation::kFloat32 || 197 return r2 == MachineRepresentation::kFloat32 ||
197 r2 == MachineRepresentation::kFloat64 || 198 r2 == MachineRepresentation::kFloat64 ||
198 r2 == MachineRepresentation::kTagged; 199 r2 == MachineRepresentation::kTagged;
199 case MachineRepresentation::kFloat64: 200 case MachineRepresentation::kFloat64:
200 return r2 == MachineRepresentation::kFloat64 || 201 return r2 == MachineRepresentation::kFloat64 ||
201 r2 == MachineRepresentation::kTagged; 202 r2 == MachineRepresentation::kTagged;
203 case MachineRepresentation::kSimd128:
204 return r2 == MachineRepresentation::kSimd128 ||
205 r2 == MachineRepresentation::kTagged;
202 case MachineRepresentation::kTagged: 206 case MachineRepresentation::kTagged:
203 return r2 == MachineRepresentation::kTagged; 207 return r2 == MachineRepresentation::kTagged;
204 } 208 }
205 UNREACHABLE(); 209 UNREACHABLE();
206 return false; 210 return false;
207 } 211 }
208 212
209 213
210 class InputUseInfos { 214 class InputUseInfos {
211 public: 215 public:
(...skipping 1769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 ReplaceEffectUses(node, comparison); 1985 ReplaceEffectUses(node, comparison);
1982 node->ReplaceInput(0, comparison); 1986 node->ReplaceInput(0, comparison);
1983 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1987 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1984 node->TrimInputCount(2); 1988 node->TrimInputCount(2);
1985 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); 1989 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual());
1986 } 1990 }
1987 1991
1988 } // namespace compiler 1992 } // namespace compiler
1989 } // namespace internal 1993 } // namespace internal
1990 } // namespace v8 1994 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/representation-change.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698