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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 break; | 705 break; |
706 case IrOpcode::kObjectIsSmi: | 706 case IrOpcode::kObjectIsSmi: |
707 if (!IsAllocation(rep) && SetEscaped(rep)) { | 707 if (!IsAllocation(rep) && SetEscaped(rep)) { |
708 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", | 708 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", |
709 rep->id(), rep->op()->mnemonic(), use->id(), | 709 rep->id(), rep->op()->mnemonic(), use->id(), |
710 use->op()->mnemonic()); | 710 use->op()->mnemonic()); |
711 return true; | 711 return true; |
712 } | 712 } |
713 break; | 713 break; |
714 case IrOpcode::kSelect: | 714 case IrOpcode::kSelect: |
715 case IrOpcode::kGuard: | 715 case IrOpcode::kTypeGuard: |
716 if (SetEscaped(rep)) { | 716 if (SetEscaped(rep)) { |
717 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", | 717 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", |
718 rep->id(), rep->op()->mnemonic(), use->id(), | 718 rep->id(), rep->op()->mnemonic(), use->id(), |
719 use->op()->mnemonic()); | 719 use->op()->mnemonic()); |
720 return true; | 720 return true; |
721 } | 721 } |
722 break; | 722 break; |
723 default: | 723 default: |
724 if (use->op()->EffectInputCount() == 0 && | 724 if (use->op()->EffectInputCount() == 0 && |
725 uses->op()->EffectInputCount() > 0 && | 725 uses->op()->EffectInputCount() > 0 && |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 return true; | 1527 return true; |
1528 } | 1528 } |
1529 } | 1529 } |
1530 } | 1530 } |
1531 return false; | 1531 return false; |
1532 } | 1532 } |
1533 | 1533 |
1534 } // namespace compiler | 1534 } // namespace compiler |
1535 } // namespace internal | 1535 } // namespace internal |
1536 } // namespace v8 | 1536 } // namespace v8 |
OLD | NEW |