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

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

Issue 2819583002: [turbofan] Introduce a dedicated Array type. (Closed)
Patch Set: Created 3 years, 8 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/types.cc ('k') | test/cctest/test-types.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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 595
596 case IrOpcode::kJSCreate: 596 case IrOpcode::kJSCreate:
597 // Type is Object. 597 // Type is Object.
598 CheckTypeIs(node, Type::Object()); 598 CheckTypeIs(node, Type::Object());
599 break; 599 break;
600 case IrOpcode::kJSCreateArguments: 600 case IrOpcode::kJSCreateArguments:
601 // Type is OtherObject. 601 // Type is OtherObject.
602 CheckTypeIs(node, Type::OtherObject()); 602 CheckTypeIs(node, Type::OtherObject());
603 break; 603 break;
604 case IrOpcode::kJSCreateArray: 604 case IrOpcode::kJSCreateArray:
605 // Type is OtherObject. 605 // Type is Array.
606 CheckTypeIs(node, Type::OtherObject()); 606 CheckTypeIs(node, Type::Array());
607 break; 607 break;
608 case IrOpcode::kJSCreateClosure: 608 case IrOpcode::kJSCreateClosure:
609 // Type is Function. 609 // Type is Function.
610 CheckTypeIs(node, Type::Function()); 610 CheckTypeIs(node, Type::Function());
611 break; 611 break;
612 case IrOpcode::kJSCreateIterResultObject: 612 case IrOpcode::kJSCreateIterResultObject:
613 // Type is OtherObject. 613 // Type is OtherObject.
614 CheckTypeIs(node, Type::OtherObject()); 614 CheckTypeIs(node, Type::OtherObject());
615 break; 615 break;
616 case IrOpcode::kJSCreateKeyValueArray: 616 case IrOpcode::kJSCreateKeyValueArray:
617 // Type is OtherObject. 617 // Type is OtherObject.
618 CheckTypeIs(node, Type::OtherObject()); 618 CheckTypeIs(node, Type::OtherObject());
619 break; 619 break;
620 case IrOpcode::kJSCreateLiteralArray: 620 case IrOpcode::kJSCreateLiteralArray:
621 // Type is Array.
622 CheckTypeIs(node, Type::Array());
623 break;
621 case IrOpcode::kJSCreateLiteralObject: 624 case IrOpcode::kJSCreateLiteralObject:
622 case IrOpcode::kJSCreateLiteralRegExp: 625 case IrOpcode::kJSCreateLiteralRegExp:
623 // Type is OtherObject. 626 // Type is OtherObject.
624 CheckTypeIs(node, Type::OtherObject()); 627 CheckTypeIs(node, Type::OtherObject());
625 break; 628 break;
626 case IrOpcode::kJSLoadProperty: 629 case IrOpcode::kJSLoadProperty:
627 // Type can be anything. 630 // Type can be anything.
628 CheckTypeIs(node, Type::Any()); 631 CheckTypeIs(node, Type::Any());
629 CHECK(PropertyAccessOf(node->op()).feedback().IsValid()); 632 CHECK(PropertyAccessOf(node->op()).feedback().IsValid());
630 break; 633 break;
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 replacement->op()->EffectOutputCount() > 0); 1763 replacement->op()->EffectOutputCount() > 0);
1761 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1764 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1762 replacement->opcode() == IrOpcode::kFrameState); 1765 replacement->opcode() == IrOpcode::kFrameState);
1763 } 1766 }
1764 1767
1765 #endif // DEBUG 1768 #endif // DEBUG
1766 1769
1767 } // namespace compiler 1770 } // namespace compiler
1768 } // namespace internal 1771 } // namespace internal
1769 } // namespace v8 1772 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/types.cc ('k') | test/cctest/test-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698