| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |