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

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

Issue 24169005: remove HEAP from tests (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « test/cctest/test-spaces.cc ('k') | test/cctest/test-symbols.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 private: 283 private:
284 DISALLOW_COPY_AND_ASSIGN(ConsStringGenerationData); 284 DISALLOW_COPY_AND_ASSIGN(ConsStringGenerationData);
285 }; 285 };
286 286
287 287
288 ConsStringGenerationData::ConsStringGenerationData(bool long_blocks, 288 ConsStringGenerationData::ConsStringGenerationData(bool long_blocks,
289 Zone* zone) { 289 Zone* zone) {
290 rng_.init(); 290 rng_.init();
291 InitializeBuildingBlocks( 291 InitializeBuildingBlocks(
292 building_blocks_, kNumberOfBuildingBlocks, long_blocks, &rng_, zone); 292 building_blocks_, kNumberOfBuildingBlocks, long_blocks, &rng_, zone);
293 empty_string_ = CcTest::i_isolate()->heap()->empty_string(); 293 empty_string_ = CcTest::heap()->empty_string();
294 Reset(); 294 Reset();
295 } 295 }
296 296
297 297
298 Handle<String> ConsStringGenerationData::block(uint32_t offset) { 298 Handle<String> ConsStringGenerationData::block(uint32_t offset) {
299 return building_blocks_[offset % kNumberOfBuildingBlocks ]; 299 return building_blocks_[offset % kNumberOfBuildingBlocks ];
300 } 300 }
301 301
302 302
303 Handle<String> ConsStringGenerationData::block(int offset) { 303 Handle<String> ConsStringGenerationData::block(int offset) {
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 CheckCanonicalEquivalence(c, test); 1379 CheckCanonicalEquivalence(c, test);
1380 continue; 1380 continue;
1381 } 1381 }
1382 if (upper != c && lower != c) { 1382 if (upper != c && lower != c) {
1383 CheckCanonicalEquivalence(c, test); 1383 CheckCanonicalEquivalence(c, test);
1384 continue; 1384 continue;
1385 } 1385 }
1386 CHECK_EQ(Min(upper, lower), test); 1386 CHECK_EQ(Min(upper, lower), test);
1387 } 1387 }
1388 } 1388 }
OLDNEW
« no previous file with comments | « test/cctest/test-spaces.cc ('k') | test/cctest/test-symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698