| 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/escape-analysis.h" | 5 #include "src/compiler/escape-analysis.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 case IrOpcode::kPlainPrimitiveToFloat64: | 838 case IrOpcode::kPlainPrimitiveToFloat64: |
| 839 case IrOpcode::kStringCharAt: | 839 case IrOpcode::kStringCharAt: |
| 840 case IrOpcode::kStringCharCodeAt: | 840 case IrOpcode::kStringCharCodeAt: |
| 841 case IrOpcode::kStringIndexOf: | 841 case IrOpcode::kStringIndexOf: |
| 842 case IrOpcode::kObjectIsCallable: | 842 case IrOpcode::kObjectIsCallable: |
| 843 case IrOpcode::kObjectIsNonCallable: | 843 case IrOpcode::kObjectIsNonCallable: |
| 844 case IrOpcode::kObjectIsNumber: | 844 case IrOpcode::kObjectIsNumber: |
| 845 case IrOpcode::kObjectIsReceiver: | 845 case IrOpcode::kObjectIsReceiver: |
| 846 case IrOpcode::kObjectIsString: | 846 case IrOpcode::kObjectIsString: |
| 847 case IrOpcode::kObjectIsUndetectable: | 847 case IrOpcode::kObjectIsUndetectable: |
| 848 case IrOpcode::kTypeOfIsFunction: |
| 848 if (SetEscaped(rep)) { | 849 if (SetEscaped(rep)) { |
| 849 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", | 850 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", |
| 850 rep->id(), rep->op()->mnemonic(), use->id(), | 851 rep->id(), rep->op()->mnemonic(), use->id(), |
| 851 use->op()->mnemonic()); | 852 use->op()->mnemonic()); |
| 852 return true; | 853 return true; |
| 853 } | 854 } |
| 854 break; | 855 break; |
| 855 default: | 856 default: |
| 856 if (use->op()->EffectInputCount() == 0 && | 857 if (use->op()->EffectInputCount() == 0 && |
| 857 uses->op()->EffectInputCount() > 0 && | 858 uses->op()->EffectInputCount() > 0 && |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 } | 1794 } |
| 1794 } | 1795 } |
| 1795 return false; | 1796 return false; |
| 1796 } | 1797 } |
| 1797 | 1798 |
| 1798 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } | 1799 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } |
| 1799 | 1800 |
| 1800 } // namespace compiler | 1801 } // namespace compiler |
| 1801 } // namespace internal | 1802 } // namespace internal |
| 1802 } // namespace v8 | 1803 } // namespace v8 |
| OLD | NEW |