| 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 // TODO(mstarzinger): The following list of operators will eventually be | 811 // TODO(mstarzinger): The following list of operators will eventually be |
| 812 // handled by the EscapeAnalysisReducer (similar to ObjectIsSmi). | 812 // handled by the EscapeAnalysisReducer (similar to ObjectIsSmi). |
| 813 case IrOpcode::kConvertTaggedHoleToUndefined: | 813 case IrOpcode::kConvertTaggedHoleToUndefined: |
| 814 case IrOpcode::kStringEqual: | 814 case IrOpcode::kStringEqual: |
| 815 case IrOpcode::kStringLessThan: | 815 case IrOpcode::kStringLessThan: |
| 816 case IrOpcode::kStringLessThanOrEqual: | 816 case IrOpcode::kStringLessThanOrEqual: |
| 817 case IrOpcode::kTypeGuard: | 817 case IrOpcode::kTypeGuard: |
| 818 case IrOpcode::kPlainPrimitiveToNumber: | 818 case IrOpcode::kPlainPrimitiveToNumber: |
| 819 case IrOpcode::kPlainPrimitiveToWord32: | 819 case IrOpcode::kPlainPrimitiveToWord32: |
| 820 case IrOpcode::kPlainPrimitiveToFloat64: | 820 case IrOpcode::kPlainPrimitiveToFloat64: |
| 821 case IrOpcode::kStringCharAt: |
| 821 case IrOpcode::kStringCharCodeAt: | 822 case IrOpcode::kStringCharCodeAt: |
| 822 case IrOpcode::kObjectIsCallable: | 823 case IrOpcode::kObjectIsCallable: |
| 823 case IrOpcode::kObjectIsNumber: | 824 case IrOpcode::kObjectIsNumber: |
| 824 case IrOpcode::kObjectIsReceiver: | 825 case IrOpcode::kObjectIsReceiver: |
| 825 case IrOpcode::kObjectIsString: | 826 case IrOpcode::kObjectIsString: |
| 826 case IrOpcode::kObjectIsUndetectable: | 827 case IrOpcode::kObjectIsUndetectable: |
| 827 if (SetEscaped(rep)) { | 828 if (SetEscaped(rep)) { |
| 828 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", | 829 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", |
| 829 rep->id(), rep->op()->mnemonic(), use->id(), | 830 rep->id(), rep->op()->mnemonic(), use->id(), |
| 830 use->op()->mnemonic()); | 831 use->op()->mnemonic()); |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 } | 1713 } |
| 1713 } | 1714 } |
| 1714 return false; | 1715 return false; |
| 1715 } | 1716 } |
| 1716 | 1717 |
| 1717 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } | 1718 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } |
| 1718 | 1719 |
| 1719 } // namespace compiler | 1720 } // namespace compiler |
| 1720 } // namespace internal | 1721 } // namespace internal |
| 1721 } // namespace v8 | 1722 } // namespace v8 |
| OLD | NEW |