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

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

Issue 10829097: Make test-serialize resilient against --gc-interval. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make compiler in release mode happy. Created 8 years, 4 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 | « src/isolate.cc ('k') | 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 2007-2010 the V8 project authors. All rights reserved. 1 // Copyright 2007-2010 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 int paged_space_size = (size < paged_space_max) ? size : paged_space_max; 577 int paged_space_size = (size < paged_space_max) ? size : paged_space_max;
578 HEAP->ReserveSpace( 578 HEAP->ReserveSpace(
579 new_space_size, 579 new_space_size,
580 paged_space_size, // Old pointer space. 580 paged_space_size, // Old pointer space.
581 paged_space_size, // Old data space. 581 paged_space_size, // Old data space.
582 HEAP->code_space()->RoundSizeDownToObjectAlignment(code_space_max), 582 HEAP->code_space()->RoundSizeDownToObjectAlignment(code_space_max),
583 HEAP->map_space()->RoundSizeDownToObjectAlignment(paged_space_size), 583 HEAP->map_space()->RoundSizeDownToObjectAlignment(paged_space_size),
584 HEAP->cell_space()->RoundSizeDownToObjectAlignment(paged_space_size), 584 HEAP->cell_space()->RoundSizeDownToObjectAlignment(paged_space_size),
585 size); // Large object space. 585 size); // Large object space.
586 LinearAllocationScope linear_allocation_scope; 586 LinearAllocationScope linear_allocation_scope;
587 DisallowAllocationFailure disallow_allocation_failure;
587 const int kSmallFixedArrayLength = 4; 588 const int kSmallFixedArrayLength = 4;
588 const int kSmallFixedArraySize = 589 const int kSmallFixedArraySize =
589 FixedArray::kHeaderSize + kSmallFixedArrayLength * kPointerSize; 590 FixedArray::kHeaderSize + kSmallFixedArrayLength * kPointerSize;
590 const int kSmallStringLength = 16; 591 const int kSmallStringLength = 16;
591 const int kSmallStringSize = 592 const int kSmallStringSize =
592 (SeqAsciiString::kHeaderSize + kSmallStringLength + 593 (SeqAsciiString::kHeaderSize + kSmallStringLength +
593 kObjectAlignmentMask) & ~kObjectAlignmentMask; 594 kObjectAlignmentMask) & ~kObjectAlignmentMask;
594 const int kMapSize = Map::kSize; 595 const int kMapSize = Map::kSize;
595 596
596 Object* new_last = NULL; 597 Object* new_last = NULL;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 TEST(TestThatAlwaysFails) { 686 TEST(TestThatAlwaysFails) {
686 bool ArtificialFailure = false; 687 bool ArtificialFailure = false;
687 CHECK(ArtificialFailure); 688 CHECK(ArtificialFailure);
688 } 689 }
689 690
690 691
691 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { 692 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) {
692 bool ArtificialFailure2 = false; 693 bool ArtificialFailure2 = false;
693 CHECK(ArtificialFailure2); 694 CHECK(ArtificialFailure2);
694 } 695 }
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698