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

Side by Side Diff: test/cctest/test-types.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/verifier.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <vector> 5 #include <vector>
6 6
7 #include "src/compiler/types.h" 7 #include "src/compiler/types.h"
8 #include "src/crankshaft/hydrogen-types.h" 8 #include "src/crankshaft/hydrogen-types.h"
9 #include "src/factory.h" 9 #include "src/factory.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 CheckSub(T.InternalizedString, T.UniqueName); 624 CheckSub(T.InternalizedString, T.UniqueName);
625 CheckSub(T.InternalizedString, T.Name); 625 CheckSub(T.InternalizedString, T.Name);
626 CheckSub(T.Symbol, T.UniqueName); 626 CheckSub(T.Symbol, T.UniqueName);
627 CheckSub(T.Symbol, T.Name); 627 CheckSub(T.Symbol, T.Name);
628 CheckUnordered(T.String, T.UniqueName); 628 CheckUnordered(T.String, T.UniqueName);
629 CheckUnordered(T.String, T.Symbol); 629 CheckUnordered(T.String, T.Symbol);
630 CheckUnordered(T.InternalizedString, T.Symbol); 630 CheckUnordered(T.InternalizedString, T.Symbol);
631 631
632 CheckSub(T.Object, T.Receiver); 632 CheckSub(T.Object, T.Receiver);
633 CheckSub(T.Proxy, T.Receiver); 633 CheckSub(T.Proxy, T.Receiver);
634 CheckSub(T.Array, T.Object);
634 CheckSub(T.OtherObject, T.Object); 635 CheckSub(T.OtherObject, T.Object);
635 CheckSub(T.OtherUndetectable, T.Object); 636 CheckSub(T.OtherUndetectable, T.Object);
636 CheckSub(T.OtherObject, T.Object);
637 637
638 CheckUnordered(T.Object, T.Proxy); 638 CheckUnordered(T.Object, T.Proxy);
639 CheckUnordered(T.Array, T.Undetectable);
639 CheckUnordered(T.OtherObject, T.Undetectable); 640 CheckUnordered(T.OtherObject, T.Undetectable);
640 641
641 // Subtyping between concrete structural types 642 // Subtyping between concrete structural types
642 643
643 CheckSub(T.SmiConstant, T.SignedSmall); 644 CheckSub(T.SmiConstant, T.SignedSmall);
644 CheckSub(T.SmiConstant, T.Signed32); 645 CheckSub(T.SmiConstant, T.Signed32);
645 CheckSub(T.SmiConstant, T.Number); 646 CheckSub(T.SmiConstant, T.Number);
646 CheckSub(T.ObjectConstant1, T.Object); 647 CheckSub(T.ObjectConstant1, T.Object);
647 CheckSub(T.ObjectConstant2, T.Object); 648 CheckSub(T.ObjectConstant2, T.Object);
648 CheckSub(T.ArrayConstant, T.Object); 649 CheckSub(T.ArrayConstant, T.Object);
649 CheckSub(T.ArrayConstant, T.OtherObject); 650 CheckSub(T.ArrayConstant, T.Array);
650 CheckSub(T.ArrayConstant, T.Receiver); 651 CheckSub(T.ArrayConstant, T.Receiver);
651 CheckSub(T.UninitializedConstant, T.Internal); 652 CheckSub(T.UninitializedConstant, T.Internal);
652 CheckUnordered(T.ObjectConstant1, T.ObjectConstant2); 653 CheckUnordered(T.ObjectConstant1, T.ObjectConstant2);
653 CheckUnordered(T.ObjectConstant1, T.ArrayConstant); 654 CheckUnordered(T.ObjectConstant1, T.ArrayConstant);
654 CheckUnordered(T.UninitializedConstant, T.Null); 655 CheckUnordered(T.UninitializedConstant, T.Null);
655 CheckUnordered(T.UninitializedConstant, T.Undefined); 656 CheckUnordered(T.UninitializedConstant, T.Undefined);
656 } 657 }
657 658
658 void Maybe() { 659 void Maybe() {
659 // T->Maybe(Any) iff T inhabited 660 // T->Maybe(Any) iff T inhabited
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 1107
1107 TEST(Union3) { Tests().Union3(); } 1108 TEST(Union3) { Tests().Union3(); }
1108 1109
1109 TEST(Union4) { Tests().Union4(); } 1110 TEST(Union4) { Tests().Union4(); }
1110 1111
1111 TEST(Intersect) { Tests().Intersect(); } 1112 TEST(Intersect) { Tests().Intersect(); }
1112 1113
1113 TEST(Distributivity) { Tests().Distributivity(); } 1114 TEST(Distributivity) { Tests().Distributivity(); }
1114 1115
1115 TEST(GetRange) { Tests().GetRange(); } 1116 TEST(GetRange) { Tests().GetRange(); }
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698