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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 case IrOpcode::kStringLessThan: | 833 case IrOpcode::kStringLessThan: |
834 case IrOpcode::kStringLessThanOrEqual: | 834 case IrOpcode::kStringLessThanOrEqual: |
835 case IrOpcode::kTypeGuard: | 835 case IrOpcode::kTypeGuard: |
836 case IrOpcode::kPlainPrimitiveToNumber: | 836 case IrOpcode::kPlainPrimitiveToNumber: |
837 case IrOpcode::kPlainPrimitiveToWord32: | 837 case IrOpcode::kPlainPrimitiveToWord32: |
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::kObjectIsDetectableCallable: | 842 case IrOpcode::kObjectIsDetectableCallable: |
| 843 case IrOpcode::kObjectIsNaN: |
843 case IrOpcode::kObjectIsNonCallable: | 844 case IrOpcode::kObjectIsNonCallable: |
844 case IrOpcode::kObjectIsNumber: | 845 case IrOpcode::kObjectIsNumber: |
845 case IrOpcode::kObjectIsReceiver: | 846 case IrOpcode::kObjectIsReceiver: |
846 case IrOpcode::kObjectIsString: | 847 case IrOpcode::kObjectIsString: |
847 case IrOpcode::kObjectIsUndetectable: | 848 case IrOpcode::kObjectIsUndetectable: |
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; |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1796 } | 1797 } |
1797 } | 1798 } |
1798 return false; | 1799 return false; |
1799 } | 1800 } |
1800 | 1801 |
1801 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } | 1802 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } |
1802 | 1803 |
1803 } // namespace compiler | 1804 } // namespace compiler |
1804 } // namespace internal | 1805 } // namespace internal |
1805 } // namespace v8 | 1806 } // namespace v8 |
OLD | NEW |