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

Side by Side Diff: src/compiler/state-values-utils.cc

Issue 1513543003: [turbofan] Make MachineType a pair of enums. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Moar rebase Created 5 years 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/simplified-operator.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/state-values-utils.h" 5 #include "src/compiler/state-values-utils.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 265
266 Node* StateValuesAccess::iterator::node() { 266 Node* StateValuesAccess::iterator::node() {
267 return Top()->node->InputAt(Top()->index); 267 return Top()->node->InputAt(Top()->index);
268 } 268 }
269 269
270 270
271 MachineType StateValuesAccess::iterator::type() { 271 MachineType StateValuesAccess::iterator::type() {
272 Node* state = Top()->node; 272 Node* state = Top()->node;
273 if (state->opcode() == IrOpcode::kStateValues) { 273 if (state->opcode() == IrOpcode::kStateValues) {
274 return kMachAnyTagged; 274 return MachineType::AnyTagged();
275 } else { 275 } else {
276 DCHECK_EQ(IrOpcode::kTypedStateValues, state->opcode()); 276 DCHECK_EQ(IrOpcode::kTypedStateValues, state->opcode());
277 const ZoneVector<MachineType>* types = 277 const ZoneVector<MachineType>* types =
278 OpParameter<const ZoneVector<MachineType>*>(state); 278 OpParameter<const ZoneVector<MachineType>*>(state);
279 return (*types)[Top()->index]; 279 return (*types)[Top()->index];
280 } 280 }
281 } 281 }
282 282
283 283
284 bool StateValuesAccess::iterator::operator!=(iterator& other) { 284 bool StateValuesAccess::iterator::operator!=(iterator& other) {
(...skipping 23 matching lines...) Expand all
308 } else { 308 } else {
309 count++; 309 count++;
310 } 310 }
311 } 311 }
312 return count; 312 return count;
313 } 313 }
314 314
315 } // namespace compiler 315 } // namespace compiler
316 } // namespace internal 316 } // namespace internal
317 } // namespace v8 317 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698