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 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 // Checks whether a global GC is necessary | 1894 // Checks whether a global GC is necessary |
1895 GarbageCollector SelectGarbageCollector(AllocationSpace space, | 1895 GarbageCollector SelectGarbageCollector(AllocationSpace space, |
1896 const char** reason); | 1896 const char** reason); |
1897 | 1897 |
1898 // Performs garbage collection | 1898 // Performs garbage collection |
1899 // Returns whether there is a chance another major GC could | 1899 // Returns whether there is a chance another major GC could |
1900 // collect more garbage. | 1900 // collect more garbage. |
1901 bool PerformGarbageCollection(GarbageCollector collector, | 1901 bool PerformGarbageCollection(GarbageCollector collector, |
1902 GCTracer* tracer); | 1902 GCTracer* tracer); |
1903 | 1903 |
1904 bool IterateObjectGroups(ObjectVisitor* scavenge_visitor); | |
1905 | |
1906 inline void UpdateOldSpaceLimits(); | 1904 inline void UpdateOldSpaceLimits(); |
1907 | 1905 |
1908 // Allocate an uninitialized object in map space. The behavior is identical | 1906 // Allocate an uninitialized object in map space. The behavior is identical |
1909 // to Heap::AllocateRaw(size_in_bytes, MAP_SPACE), except that (a) it doesn't | 1907 // to Heap::AllocateRaw(size_in_bytes, MAP_SPACE), except that (a) it doesn't |
1910 // have to test the allocation space argument and (b) can reduce code size | 1908 // have to test the allocation space argument and (b) can reduce code size |
1911 // (since both AllocateRaw and AllocateRawMap are inlined). | 1909 // (since both AllocateRaw and AllocateRawMap are inlined). |
1912 MUST_USE_RESULT inline MaybeObject* AllocateRawMap(); | 1910 MUST_USE_RESULT inline MaybeObject* AllocateRawMap(); |
1913 | 1911 |
1914 // Allocate an uninitialized object in the global property cell space. | 1912 // Allocate an uninitialized object in the global property cell space. |
1915 MUST_USE_RESULT inline MaybeObject* AllocateRawCell(); | 1913 MUST_USE_RESULT inline MaybeObject* AllocateRawCell(); |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2816 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2819 | 2817 |
2820 private: | 2818 private: |
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2819 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2822 }; | 2820 }; |
2823 #endif // DEBUG || LIVE_OBJECT_LIST | 2821 #endif // DEBUG || LIVE_OBJECT_LIST |
2824 | 2822 |
2825 } } // namespace v8::internal | 2823 } } // namespace v8::internal |
2826 | 2824 |
2827 #endif // V8_HEAP_H_ | 2825 #endif // V8_HEAP_H_ |
OLD | NEW |