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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 void ExternalStringTable::ShrinkNewStrings(int position) { | 659 void ExternalStringTable::ShrinkNewStrings(int position) { |
660 new_space_strings_.Rewind(position); | 660 new_space_strings_.Rewind(position); |
661 #ifdef VERIFY_HEAP | 661 #ifdef VERIFY_HEAP |
662 if (FLAG_verify_heap) { | 662 if (FLAG_verify_heap) { |
663 Verify(); | 663 Verify(); |
664 } | 664 } |
665 #endif | 665 #endif |
666 } | 666 } |
667 | 667 |
668 | 668 |
669 void ErrorObjectList::Add(JSObject* object) { | |
670 list_.Add(object); | |
671 } | |
672 | |
673 | |
674 void ErrorObjectList::Iterate(ObjectVisitor* v) { | |
675 if (!list_.is_empty()) { | |
676 Object** start = &list_[0]; | |
677 v->VisitPointers(start, start + list_.length()); | |
678 } | |
679 } | |
680 | |
681 | |
682 void Heap::ClearInstanceofCache() { | 669 void Heap::ClearInstanceofCache() { |
683 set_instanceof_cache_function(the_hole_value()); | 670 set_instanceof_cache_function(the_hole_value()); |
684 } | 671 } |
685 | 672 |
686 | 673 |
687 Object* Heap::ToBoolean(bool condition) { | 674 Object* Heap::ToBoolean(bool condition) { |
688 return condition ? true_value() : false_value(); | 675 return condition ? true_value() : false_value(); |
689 } | 676 } |
690 | 677 |
691 | 678 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 AssertNoAllocation::~AssertNoAllocation() { } | 826 AssertNoAllocation::~AssertNoAllocation() { } |
840 DisableAssertNoAllocation::DisableAssertNoAllocation() { } | 827 DisableAssertNoAllocation::DisableAssertNoAllocation() { } |
841 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } | 828 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } |
842 | 829 |
843 #endif | 830 #endif |
844 | 831 |
845 | 832 |
846 } } // namespace v8::internal | 833 } } // namespace v8::internal |
847 | 834 |
848 #endif // V8_HEAP_INL_H_ | 835 #endif // V8_HEAP_INL_H_ |
OLD | NEW |