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