OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "src/compiler/common-operator.h" |
| 6 #include "src/compiler/node-properties.h" |
| 7 |
| 8 namespace v8 { |
| 9 namespace internal { |
| 10 namespace compiler { |
| 11 |
| 12 Node* NodeProperties::FindProjection(Node* node, size_t projection_index) { |
| 13 for (auto use : node->uses()) { |
| 14 if (use->opcode() == IrOpcode::kProjection && |
| 15 ProjectionIndexOf(use->op()) == projection_index) { |
| 16 return use; |
| 17 } |
| 18 } |
| 19 return nullptr; |
| 20 } |
| 21 |
| 22 } // namespace compiler |
| 23 } // namespace internal |
| 24 } // namespace v8 |
OLD | NEW |