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

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

Issue 2677163003: WIP: type profiling. (Closed)
Patch Set: Rebaseline. 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/typer.cc ('k') | src/feedback-vector.h » ('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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 // Type is empty. 626 // Type is empty.
627 CheckNotTyped(node); 627 CheckNotTyped(node);
628 CHECK(NamedAccessOf(node->op()).feedback().IsValid()); 628 CHECK(NamedAccessOf(node->op()).feedback().IsValid());
629 break; 629 break;
630 case IrOpcode::kJSStoreGlobal: 630 case IrOpcode::kJSStoreGlobal:
631 // Type is empty. 631 // Type is empty.
632 CheckNotTyped(node); 632 CheckNotTyped(node);
633 CHECK(StoreGlobalParametersOf(node->op()).feedback().IsValid()); 633 CHECK(StoreGlobalParametersOf(node->op()).feedback().IsValid());
634 break; 634 break;
635 case IrOpcode::kJSStoreDataPropertyInLiteral: 635 case IrOpcode::kJSStoreDataPropertyInLiteral:
636 case IrOpcode::kJSCollectTypeProfile:
636 // Type is empty. 637 // Type is empty.
637 CheckNotTyped(node); 638 CheckNotTyped(node);
638 break; 639 break;
639 case IrOpcode::kJSDeleteProperty: 640 case IrOpcode::kJSDeleteProperty:
640 case IrOpcode::kJSHasProperty: 641 case IrOpcode::kJSHasProperty:
641 case IrOpcode::kJSInstanceOf: 642 case IrOpcode::kJSInstanceOf:
642 case IrOpcode::kJSOrdinaryHasInstance: 643 case IrOpcode::kJSOrdinaryHasInstance:
643 // Type is Boolean. 644 // Type is Boolean.
644 CheckTypeIs(node, Type::Boolean()); 645 CheckTypeIs(node, Type::Boolean());
645 break; 646 break;
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 replacement->op()->EffectOutputCount() > 0); 1708 replacement->op()->EffectOutputCount() > 0);
1708 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1709 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1709 replacement->opcode() == IrOpcode::kFrameState); 1710 replacement->opcode() == IrOpcode::kFrameState);
1710 } 1711 }
1711 1712
1712 #endif // DEBUG 1713 #endif // DEBUG
1713 1714
1714 } // namespace compiler 1715 } // namespace compiler
1715 } // namespace internal 1716 } // namespace internal
1716 } // namespace v8 1717 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698