| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "hydrogen-escape-analysis.h" | 5 #include "src/hydrogen-escape-analysis.h" |
| 6 | 6 |
| 7 namespace v8 { | 7 namespace v8 { |
| 8 namespace internal { | 8 namespace internal { |
| 9 | 9 |
| 10 | 10 |
| 11 bool HEscapeAnalysisPhase::HasNoEscapingUses(HValue* value, int size) { | 11 bool HEscapeAnalysisPhase::HasNoEscapingUses(HValue* value, int size) { |
| 12 for (HUseIterator it(value->uses()); !it.Done(); it.Advance()) { | 12 for (HUseIterator it(value->uses()); !it.Done(); it.Advance()) { |
| 13 HValue* use = it.value(); | 13 HValue* use = it.value(); |
| 14 if (use->HasEscapingOperandAt(it.index())) { | 14 if (use->HasEscapingOperandAt(it.index())) { |
| 15 if (FLAG_trace_escape_analysis) { | 15 if (FLAG_trace_escape_analysis) { |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 for (int i = 0; i < max_fixpoint_iteration_count; i++) { | 319 for (int i = 0; i < max_fixpoint_iteration_count; i++) { |
| 320 CollectCapturedValues(); | 320 CollectCapturedValues(); |
| 321 if (captured_.is_empty()) break; | 321 if (captured_.is_empty()) break; |
| 322 PerformScalarReplacement(); | 322 PerformScalarReplacement(); |
| 323 captured_.Rewind(0); | 323 captured_.Rewind(0); |
| 324 } | 324 } |
| 325 } | 325 } |
| 326 | 326 |
| 327 | 327 |
| 328 } } // namespace v8::internal | 328 } } // namespace v8::internal |
| OLD | NEW |