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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 case IrOpcode::kStringEqual: | 822 case IrOpcode::kStringEqual: |
823 case IrOpcode::kStringLessThan: | 823 case IrOpcode::kStringLessThan: |
824 case IrOpcode::kStringLessThanOrEqual: | 824 case IrOpcode::kStringLessThanOrEqual: |
825 case IrOpcode::kTypeGuard: | 825 case IrOpcode::kTypeGuard: |
826 case IrOpcode::kPlainPrimitiveToNumber: | 826 case IrOpcode::kPlainPrimitiveToNumber: |
827 case IrOpcode::kPlainPrimitiveToWord32: | 827 case IrOpcode::kPlainPrimitiveToWord32: |
828 case IrOpcode::kPlainPrimitiveToFloat64: | 828 case IrOpcode::kPlainPrimitiveToFloat64: |
829 case IrOpcode::kStringCharAt: | 829 case IrOpcode::kStringCharAt: |
830 case IrOpcode::kStringCharCodeAt: | 830 case IrOpcode::kStringCharCodeAt: |
831 case IrOpcode::kStringIndexOf: | 831 case IrOpcode::kStringIndexOf: |
832 case IrOpcode::kObjectIsCallable: | 832 case IrOpcode::kObjectIsDetectableCallable: |
833 case IrOpcode::kObjectIsNonCallable: | 833 case IrOpcode::kObjectIsNonCallable: |
834 case IrOpcode::kObjectIsNumber: | 834 case IrOpcode::kObjectIsNumber: |
835 case IrOpcode::kObjectIsReceiver: | 835 case IrOpcode::kObjectIsReceiver: |
836 case IrOpcode::kObjectIsString: | 836 case IrOpcode::kObjectIsString: |
837 case IrOpcode::kObjectIsUndetectable: | 837 case IrOpcode::kObjectIsUndetectable: |
838 if (SetEscaped(rep)) { | 838 if (SetEscaped(rep)) { |
839 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", | 839 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", |
840 rep->id(), rep->op()->mnemonic(), use->id(), | 840 rep->id(), rep->op()->mnemonic(), use->id(), |
841 use->op()->mnemonic()); | 841 use->op()->mnemonic()); |
842 return true; | 842 return true; |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 } | 1736 } |
1737 } | 1737 } |
1738 return false; | 1738 return false; |
1739 } | 1739 } |
1740 | 1740 |
1741 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } | 1741 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } |
1742 | 1742 |
1743 } // namespace compiler | 1743 } // namespace compiler |
1744 } // namespace internal | 1744 } // namespace internal |
1745 } // namespace v8 | 1745 } // namespace v8 |
OLD | NEW |