| 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 | |
| 685 void Heap::ClearInstanceofCache() { | 672 void Heap::ClearInstanceofCache() { |
| 686 set_instanceof_cache_function(the_hole_value()); | 673 set_instanceof_cache_function(the_hole_value()); |
| 687 } | 674 } |
| 688 | 675 |
| 689 | 676 |
| 690 Object* Heap::ToBoolean(bool condition) { | 677 Object* Heap::ToBoolean(bool condition) { |
| 691 return condition ? true_value() : false_value(); | 678 return condition ? true_value() : false_value(); |
| 692 } | 679 } |
| 693 | 680 |
| 694 | 681 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 AssertNoAllocation::~AssertNoAllocation() { } | 829 AssertNoAllocation::~AssertNoAllocation() { } |
| 843 DisableAssertNoAllocation::DisableAssertNoAllocation() { } | 830 DisableAssertNoAllocation::DisableAssertNoAllocation() { } |
| 844 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } | 831 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } |
| 845 | 832 |
| 846 #endif | 833 #endif |
| 847 | 834 |
| 848 | 835 |
| 849 } } // namespace v8::internal | 836 } } // namespace v8::internal |
| 850 | 837 |
| 851 #endif // V8_HEAP_INL_H_ | 838 #endif // V8_HEAP_INL_H_ |
| OLD | NEW |