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

Side by Side Diff: src/compiler/verifier.cc

Issue 2934893002: [builtins] Properly optimize Object.prototype.isPrototypeOf. (Closed)
Patch Set: Address feedback. Created 3 years, 6 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/typer.cc ('k') | src/debug/debug-evaluate.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/verifier.h" 5 #include "src/compiler/verifier.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <sstream> 10 #include <sstream>
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 // Type is empty. 661 // Type is empty.
662 CheckNotTyped(node); 662 CheckNotTyped(node);
663 CHECK(StoreNamedOwnParametersOf(node->op()).feedback().IsValid()); 663 CHECK(StoreNamedOwnParametersOf(node->op()).feedback().IsValid());
664 break; 664 break;
665 case IrOpcode::kJSStoreDataPropertyInLiteral: 665 case IrOpcode::kJSStoreDataPropertyInLiteral:
666 // Type is empty. 666 // Type is empty.
667 CheckNotTyped(node); 667 CheckNotTyped(node);
668 break; 668 break;
669 case IrOpcode::kJSDeleteProperty: 669 case IrOpcode::kJSDeleteProperty:
670 case IrOpcode::kJSHasProperty: 670 case IrOpcode::kJSHasProperty:
671 case IrOpcode::kJSHasInPrototypeChain:
671 case IrOpcode::kJSInstanceOf: 672 case IrOpcode::kJSInstanceOf:
672 case IrOpcode::kJSOrdinaryHasInstance: 673 case IrOpcode::kJSOrdinaryHasInstance:
673 // Type is Boolean. 674 // Type is Boolean.
674 CheckTypeIs(node, Type::Boolean()); 675 CheckTypeIs(node, Type::Boolean());
675 break; 676 break;
676 case IrOpcode::kJSClassOf: 677 case IrOpcode::kJSClassOf:
677 // Type is InternaliedString \/ Null. 678 // Type is InternaliedString \/ Null.
678 CheckTypeIs(node, Type::InternalizedStringOrNull()); 679 CheckTypeIs(node, Type::InternalizedStringOrNull());
679 break; 680 break;
680 case IrOpcode::kJSTypeOf: 681 case IrOpcode::kJSTypeOf:
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 replacement->op()->EffectOutputCount() > 0); 1790 replacement->op()->EffectOutputCount() > 0);
1790 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1791 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1791 replacement->opcode() == IrOpcode::kFrameState); 1792 replacement->opcode() == IrOpcode::kFrameState);
1792 } 1793 }
1793 1794
1794 #endif // DEBUG 1795 #endif // DEBUG
1795 1796
1796 } // namespace compiler 1797 } // namespace compiler
1797 } // namespace internal 1798 } // namespace internal
1798 } // namespace v8 1799 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/debug/debug-evaluate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698