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

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

Issue 1994503002: [turbofan] Turn common Guard operator into simplified TypeGuard. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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-intrinsic-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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698