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

Side by Side Diff: test/cctest/test-types.cc

Issue 141433016: don't anger clang (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 T.Union(T.ObjectConstant1, T.ArrayConstant2)), 804 T.Union(T.ObjectConstant1, T.ArrayConstant2)),
805 T.ArrayConstant1); 805 T.ArrayConstant1);
806 } 806 }
807 807
808 template<class Type2, class TypeHandle2, class Region2, class Rep2> 808 template<class Type2, class TypeHandle2, class Region2, class Rep2>
809 void Convert() { 809 void Convert() {
810 Types<Type2, TypeHandle2, Region2> T2( 810 Types<Type2, TypeHandle2, Region2> T2(
811 Rep2::ToRegion(&zone, isolate), isolate); 811 Rep2::ToRegion(&zone, isolate), isolate);
812 for (int i = 0; i < 100; ++i) { 812 for (int i = 0; i < 100; ++i) {
813 TypeHandle type = T.Fuzz(); 813 TypeHandle type = T.Fuzz();
814 CheckEqual(type, T.Convert<Type2>(T2.Convert<Type>(type))); 814 CheckEqual(type,
815 T.template Convert<Type2>(T2.template Convert<Type>(type)));
815 } 816 }
816 } 817 }
817 }; 818 };
818 819
819 typedef Tests<Type, Type*, Zone, ZoneRep> ZoneTests; 820 typedef Tests<Type, Type*, Zone, ZoneRep> ZoneTests;
820 typedef Tests<HeapType, Handle<HeapType>, Isolate, HeapRep> HeapTests; 821 typedef Tests<HeapType, Handle<HeapType>, Isolate, HeapRep> HeapTests;
821 822
822 823
823 TEST(Bitset) { 824 TEST(Bitset) {
824 CcTest::InitializeVM(); 825 CcTest::InitializeVM();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 ZoneTests().Intersect(); 868 ZoneTests().Intersect();
868 HeapTests().Intersect(); 869 HeapTests().Intersect();
869 } 870 }
870 871
871 872
872 TEST(Convert) { 873 TEST(Convert) {
873 CcTest::InitializeVM(); 874 CcTest::InitializeVM();
874 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>(); 875 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>();
875 HeapTests().Convert<Type, Type*, Zone, ZoneRep>(); 876 HeapTests().Convert<Type, Type*, Zone, ZoneRep>();
876 } 877 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698