Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: src/compiler/escape-analysis.cc

Issue 2697063002: Fix typeof optimization for undetectable (Closed)
Patch Set: Rename + format fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698