| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 | 803 |
| 804 // Rebuild remembered set in old and map spaces. | 804 // Rebuild remembered set in old and map spaces. |
| 805 static void RebuildRSets(); | 805 static void RebuildRSets(); |
| 806 | 806 |
| 807 // Update an old object's remembered set | 807 // Update an old object's remembered set |
| 808 static int UpdateRSet(HeapObject* obj); | 808 static int UpdateRSet(HeapObject* obj); |
| 809 | 809 |
| 810 // Commits from space if it is uncommitted. | 810 // Commits from space if it is uncommitted. |
| 811 static void EnsureFromSpaceIsCommitted(); | 811 static void EnsureFromSpaceIsCommitted(); |
| 812 | 812 |
| 813 // Support for partial snapshots. After calling this we can allocate a |
| 814 // certain number of bytes using only linear allocation (with a |
| 815 // LinearAllocationScope and an AlwaysAllocateScope) without using freelists |
| 816 // or causing a GC. It returns true of space was reserved or false if a GC is |
| 817 // needed. For paged spaces the space requested must include the space wasted |
| 818 // at the end of each page when allocating linearly. |
| 819 static void ReserveSpace( |
| 820 int new_space_size, |
| 821 int pointer_space_size, |
| 822 int data_space_size, |
| 823 int code_space_size, |
| 824 int map_space_size, |
| 825 int cell_space_size, |
| 826 int large_object_size); |
| 827 |
| 813 // | 828 // |
| 814 // Support for the API. | 829 // Support for the API. |
| 815 // | 830 // |
| 816 | 831 |
| 817 static bool CreateApiObjects(); | 832 static bool CreateApiObjects(); |
| 818 | 833 |
| 819 // Attempt to find the number in a small cache. If we finds it, return | 834 // Attempt to find the number in a small cache. If we finds it, return |
| 820 // the string representation of the number. Otherwise return undefined. | 835 // the string representation of the number. Otherwise return undefined. |
| 821 static Object* GetNumberStringCache(Object* number); | 836 static Object* GetNumberStringCache(Object* number); |
| 822 | 837 |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 | 1695 |
| 1681 // To speed up scavenge collections new space string are kept | 1696 // To speed up scavenge collections new space string are kept |
| 1682 // separate from old space strings. | 1697 // separate from old space strings. |
| 1683 static List<Object*> new_space_strings_; | 1698 static List<Object*> new_space_strings_; |
| 1684 static List<Object*> old_space_strings_; | 1699 static List<Object*> old_space_strings_; |
| 1685 }; | 1700 }; |
| 1686 | 1701 |
| 1687 } } // namespace v8::internal | 1702 } } // namespace v8::internal |
| 1688 | 1703 |
| 1689 #endif // V8_HEAP_H_ | 1704 #endif // V8_HEAP_H_ |
| OLD | NEW |