OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |