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