OLD | NEW |
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/crankshaft/hydrogen-types.h" | 7 #include "src/crankshaft/hydrogen-types.h" |
8 #include "src/factory.h" | 8 #include "src/factory.h" |
9 #include "src/heap/heap.h" | 9 #include "src/heap/heap.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 typedef AstTypes::ValueVector::iterator ValueIterator; | 41 typedef AstTypes::ValueVector::iterator ValueIterator; |
42 | 42 |
43 Isolate* isolate; | 43 Isolate* isolate; |
44 HandleScope scope; | 44 HandleScope scope; |
45 Zone zone; | 45 Zone zone; |
46 AstTypes T; | 46 AstTypes T; |
47 | 47 |
48 Tests() | 48 Tests() |
49 : isolate(CcTest::InitIsolateOnce()), | 49 : isolate(CcTest::InitIsolateOnce()), |
50 scope(isolate), | 50 scope(isolate), |
51 zone(isolate->allocator()), | 51 zone(isolate->allocator(), ZONE_NAME), |
52 T(&zone, isolate, isolate->random_number_generator()) {} | 52 T(&zone, isolate, isolate->random_number_generator()) {} |
53 | 53 |
54 bool IsBitset(AstType* type) { return type->IsBitsetForTesting(); } | 54 bool IsBitset(AstType* type) { return type->IsBitsetForTesting(); } |
55 bool IsUnion(AstType* type) { return type->IsUnionForTesting(); } | 55 bool IsUnion(AstType* type) { return type->IsUnionForTesting(); } |
56 AstBitsetType::bitset AsBitset(AstType* type) { | 56 AstBitsetType::bitset AsBitset(AstType* type) { |
57 return type->AsBitsetForTesting(); | 57 return type->AsBitsetForTesting(); |
58 } | 58 } |
59 AstUnionType* AsUnion(AstType* type) { return type->AsUnionForTesting(); } | 59 AstUnionType* AsUnion(AstType* type) { return type->AsUnionForTesting(); } |
60 | 60 |
61 bool Equal(AstType* type1, AstType* type2) { | 61 bool Equal(AstType* type1, AstType* type2) { |
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1895 | 1895 |
1896 TEST(AstUnion4_zone) { Tests().Union4(); } | 1896 TEST(AstUnion4_zone) { Tests().Union4(); } |
1897 | 1897 |
1898 TEST(AstIntersect_zone) { Tests().Intersect(); } | 1898 TEST(AstIntersect_zone) { Tests().Intersect(); } |
1899 | 1899 |
1900 TEST(AstDistributivity_zone) { Tests().Distributivity(); } | 1900 TEST(AstDistributivity_zone) { Tests().Distributivity(); } |
1901 | 1901 |
1902 TEST(AstGetRange_zone) { Tests().GetRange(); } | 1902 TEST(AstGetRange_zone) { Tests().GetRange(); } |
1903 | 1903 |
1904 TEST(AstHTypeFromType_zone) { Tests().HTypeFromType(); } | 1904 TEST(AstHTypeFromType_zone) { Tests().HTypeFromType(); } |
OLD | NEW |