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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 void ExternalStringTable::ShrinkNewStrings(int position) { | 637 void ExternalStringTable::ShrinkNewStrings(int position) { |
638 new_space_strings_.Rewind(position); | 638 new_space_strings_.Rewind(position); |
639 #ifdef VERIFY_HEAP | 639 #ifdef VERIFY_HEAP |
640 if (FLAG_verify_heap) { | 640 if (FLAG_verify_heap) { |
641 Verify(); | 641 Verify(); |
642 } | 642 } |
643 #endif | 643 #endif |
644 } | 644 } |
645 | 645 |
646 | 646 |
| 647 void ErrorObjectList::Add(JSObject* object) { |
| 648 list_.Add(object); |
| 649 } |
| 650 |
| 651 |
| 652 void ErrorObjectList::Iterate(ObjectVisitor* v) { |
| 653 if (!list_.is_empty()) { |
| 654 Object** start = &list_[0]; |
| 655 v->VisitPointers(start, start + list_.length()); |
| 656 } |
| 657 } |
| 658 |
| 659 |
647 void Heap::ClearInstanceofCache() { | 660 void Heap::ClearInstanceofCache() { |
648 set_instanceof_cache_function(the_hole_value()); | 661 set_instanceof_cache_function(the_hole_value()); |
649 } | 662 } |
650 | 663 |
651 | 664 |
652 Object* Heap::ToBoolean(bool condition) { | 665 Object* Heap::ToBoolean(bool condition) { |
653 return condition ? true_value() : false_value(); | 666 return condition ? true_value() : false_value(); |
654 } | 667 } |
655 | 668 |
656 | 669 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 AssertNoAllocation::~AssertNoAllocation() { } | 817 AssertNoAllocation::~AssertNoAllocation() { } |
805 DisableAssertNoAllocation::DisableAssertNoAllocation() { } | 818 DisableAssertNoAllocation::DisableAssertNoAllocation() { } |
806 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } | 819 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } |
807 | 820 |
808 #endif | 821 #endif |
809 | 822 |
810 | 823 |
811 } } // namespace v8::internal | 824 } } // namespace v8::internal |
812 | 825 |
813 #endif // V8_HEAP_INL_H_ | 826 #endif // V8_HEAP_INL_H_ |
OLD | NEW |