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

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

Issue 239513009: Improve execution time of cctest/test-types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 values.push_back(smi); 132 values.push_back(smi);
133 values.push_back(signed32); 133 values.push_back(signed32);
134 values.push_back(object1); 134 values.push_back(object1);
135 values.push_back(object2); 135 values.push_back(object2);
136 values.push_back(array); 136 values.push_back(array);
137 values.push_back(uninitialized); 137 values.push_back(uninitialized);
138 for (ValueVector::iterator it = values.begin(); it != values.end(); ++it) { 138 for (ValueVector::iterator it = values.begin(); it != values.end(); ++it) {
139 types.push_back(Type::Constant(*it, region)); 139 types.push_back(Type::Constant(*it, region));
140 } 140 }
141 141
142 for (int i = 0; i < 100; ++i) { 142 for (int i = 0; i < 50; ++i) {
143 types.push_back(Fuzz()); 143 types.push_back(Fuzz());
144 } 144 }
145 } 145 }
146 146
147 #define DECLARE_TYPE(name, value) TypeHandle name; 147 #define DECLARE_TYPE(name, value) TypeHandle name;
148 BITSET_TYPE_LIST(DECLARE_TYPE) 148 BITSET_TYPE_LIST(DECLARE_TYPE)
149 #undef DECLARE_TYPE 149 #undef DECLARE_TYPE
150 150
151 TypeHandle ObjectClass; 151 TypeHandle ObjectClass;
152 TypeHandle ArrayClass; 152 TypeHandle ArrayClass;
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 ZoneTests().Intersect(); 1469 ZoneTests().Intersect();
1470 HeapTests().Intersect(); 1470 HeapTests().Intersect();
1471 } 1471 }
1472 1472
1473 1473
1474 TEST(Convert) { 1474 TEST(Convert) {
1475 CcTest::InitializeVM(); 1475 CcTest::InitializeVM();
1476 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>(); 1476 ZoneTests().Convert<HeapType, Handle<HeapType>, Isolate, HeapRep>();
1477 HeapTests().Convert<Type, Type*, Zone, ZoneRep>(); 1477 HeapTests().Convert<Type, Type*, Zone, ZoneRep>();
1478 } 1478 }
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