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

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

Issue 2317623003: [turbofan] Handle ObjectIsReceiver in escape analysis. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | test/mjsunit/regress/regress-crbug-631027.js » ('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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 rep->id(), rep->op()->mnemonic(), use->id(), 790 rep->id(), rep->op()->mnemonic(), use->id(),
791 use->op()->mnemonic()); 791 use->op()->mnemonic());
792 return true; 792 return true;
793 } 793 }
794 break; 794 break;
795 case IrOpcode::kSelect: 795 case IrOpcode::kSelect:
796 // TODO(mstarzinger): The following list of operators will eventually be 796 // TODO(mstarzinger): The following list of operators will eventually be
797 // handled by the EscapeAnalysisReducer (similar to ObjectIsSmi). 797 // handled by the EscapeAnalysisReducer (similar to ObjectIsSmi).
798 case IrOpcode::kObjectIsCallable: 798 case IrOpcode::kObjectIsCallable:
799 case IrOpcode::kObjectIsNumber: 799 case IrOpcode::kObjectIsNumber:
800 case IrOpcode::kObjectIsReceiver:
800 case IrOpcode::kObjectIsString: 801 case IrOpcode::kObjectIsString:
801 case IrOpcode::kObjectIsUndetectable: 802 case IrOpcode::kObjectIsUndetectable:
802 if (SetEscaped(rep)) { 803 if (SetEscaped(rep)) {
803 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", 804 TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n",
804 rep->id(), rep->op()->mnemonic(), use->id(), 805 rep->id(), rep->op()->mnemonic(), use->id(),
805 use->op()->mnemonic()); 806 use->op()->mnemonic());
806 return true; 807 return true;
807 } 808 }
808 break; 809 break;
809 default: 810 default:
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 } 1606 }
1606 } 1607 }
1607 return false; 1608 return false;
1608 } 1609 }
1609 1610
1610 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); } 1611 Graph* EscapeAnalysis::graph() const { return status_analysis_->graph(); }
1611 1612
1612 } // namespace compiler 1613 } // namespace compiler
1613 } // namespace internal 1614 } // namespace internal
1614 } // namespace v8 1615 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-631027.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698