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

Side by Side Diff: src/heap-inl.h

Issue 8381040: Move some heap verification code in under the --verify-heap flag to speed (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/incremental-marking.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 583
584 void ExternalStringTable::AddOldString(String* string) { 584 void ExternalStringTable::AddOldString(String* string) {
585 ASSERT(string->IsExternalString()); 585 ASSERT(string->IsExternalString());
586 ASSERT(!heap_->InNewSpace(string)); 586 ASSERT(!heap_->InNewSpace(string));
587 old_space_strings_.Add(string); 587 old_space_strings_.Add(string);
588 } 588 }
589 589
590 590
591 void ExternalStringTable::ShrinkNewStrings(int position) { 591 void ExternalStringTable::ShrinkNewStrings(int position) {
592 new_space_strings_.Rewind(position); 592 new_space_strings_.Rewind(position);
593 Verify(); 593 if (FLAG_verify_heap) {
594 Verify();
595 }
594 } 596 }
595 597
596 598
597 void Heap::ClearInstanceofCache() { 599 void Heap::ClearInstanceofCache() {
598 set_instanceof_cache_function(the_hole_value()); 600 set_instanceof_cache_function(the_hole_value());
599 } 601 }
600 602
601 603
602 Object* Heap::ToBoolean(bool condition) { 604 Object* Heap::ToBoolean(bool condition) {
603 return condition ? true_value() : false_value(); 605 return condition ? true_value() : false_value();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 676
675 677
676 Heap* _inline_get_heap_() { 678 Heap* _inline_get_heap_() {
677 return HEAP; 679 return HEAP;
678 } 680 }
679 681
680 682
681 } } // namespace v8::internal 683 } } // namespace v8::internal
682 684
683 #endif // V8_HEAP_INL_H_ 685 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698