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

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

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Add documentation and sprinkle consts around. Created 3 years, 9 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
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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // Type is empty. 632 // Type is empty.
633 CheckNotTyped(node); 633 CheckNotTyped(node);
634 CHECK(StoreGlobalParametersOf(node->op()).feedback().IsValid()); 634 CHECK(StoreGlobalParametersOf(node->op()).feedback().IsValid());
635 break; 635 break;
636 case IrOpcode::kJSStoreNamedOwn: 636 case IrOpcode::kJSStoreNamedOwn:
637 // Type is empty. 637 // Type is empty.
638 CheckNotTyped(node); 638 CheckNotTyped(node);
639 CHECK(StoreNamedOwnParametersOf(node->op()).feedback().IsValid()); 639 CHECK(StoreNamedOwnParametersOf(node->op()).feedback().IsValid());
640 break; 640 break;
641 case IrOpcode::kJSStoreDataPropertyInLiteral: 641 case IrOpcode::kJSStoreDataPropertyInLiteral:
642 case IrOpcode::kJSCollectTypeProfile:
642 // Type is empty. 643 // Type is empty.
643 CheckNotTyped(node); 644 CheckNotTyped(node);
644 break; 645 break;
645 case IrOpcode::kJSDeleteProperty: 646 case IrOpcode::kJSDeleteProperty:
646 case IrOpcode::kJSHasProperty: 647 case IrOpcode::kJSHasProperty:
647 case IrOpcode::kJSInstanceOf: 648 case IrOpcode::kJSInstanceOf:
648 case IrOpcode::kJSOrdinaryHasInstance: 649 case IrOpcode::kJSOrdinaryHasInstance:
649 // Type is Boolean. 650 // Type is Boolean.
650 CheckTypeIs(node, Type::Boolean()); 651 CheckTypeIs(node, Type::Boolean());
651 break; 652 break;
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 replacement->op()->EffectOutputCount() > 0); 1724 replacement->op()->EffectOutputCount() > 0);
1724 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1725 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1725 replacement->opcode() == IrOpcode::kFrameState); 1726 replacement->opcode() == IrOpcode::kFrameState);
1726 } 1727 }
1727 1728
1728 #endif // DEBUG 1729 #endif // DEBUG
1729 1730
1730 } // namespace compiler 1731 } // namespace compiler
1731 } // namespace internal 1732 } // namespace internal
1732 } // namespace v8 1733 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698