OLD | NEW |
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/gap-resolver.h" | 5 #include "src/compiler/gap-resolver.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // move's source or destination needs to have their source changed to | 104 // move's source or destination needs to have their source changed to |
105 // reflect the state of affairs after the swap. | 105 // reflect the state of affairs after the swap. |
106 for (auto other : *moves) { | 106 for (auto other : *moves) { |
107 if (other->Blocks(source)) { | 107 if (other->Blocks(source)) { |
108 other->set_source(destination); | 108 other->set_source(destination); |
109 } else if (other->Blocks(destination)) { | 109 } else if (other->Blocks(destination)) { |
110 other->set_source(source); | 110 other->set_source(source); |
111 } | 111 } |
112 } | 112 } |
113 } | 113 } |
114 } | 114 } // namespace compiler |
115 } | 115 } // namespace internal |
116 } // namespace v8::internal::compiler | 116 } // namespace v8 |
OLD | NEW |