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

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

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 years, 2 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 | « test/cctest/test-ast.cc ('k') | test/cctest/test-bit-vector.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 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
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
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(); }
OLDNEW
« no previous file with comments | « test/cctest/test-ast.cc ('k') | test/cctest/test-bit-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698