| 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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 // Helper function that governs the promotion policy from new space to | 1015 // Helper function that governs the promotion policy from new space to |
| 1016 // old. If the object's old address lies below the new space's age | 1016 // old. If the object's old address lies below the new space's age |
| 1017 // mark or if we've already filled the bottom 1/16th of the to space, | 1017 // mark or if we've already filled the bottom 1/16th of the to space, |
| 1018 // we try to promote this object. | 1018 // we try to promote this object. |
| 1019 static inline bool ShouldBePromoted(Address old_address, int object_size); | 1019 static inline bool ShouldBePromoted(Address old_address, int object_size); |
| 1020 | 1020 |
| 1021 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } | 1021 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } |
| 1022 | 1022 |
| 1023 static void ClearJSFunctionResultCaches(); | 1023 static void ClearJSFunctionResultCaches(); |
| 1024 | 1024 |
| 1025 static void ClearNormalizedMapCaches(); | |
| 1026 | |
| 1027 static GCTracer* tracer() { return tracer_; } | 1025 static GCTracer* tracer() { return tracer_; } |
| 1028 | 1026 |
| 1029 private: | 1027 private: |
| 1030 static int reserved_semispace_size_; | 1028 static int reserved_semispace_size_; |
| 1031 static int max_semispace_size_; | 1029 static int max_semispace_size_; |
| 1032 static int initial_semispace_size_; | 1030 static int initial_semispace_size_; |
| 1033 static int max_old_generation_size_; | 1031 static int max_old_generation_size_; |
| 1034 static size_t code_range_size_; | 1032 static size_t code_range_size_; |
| 1035 | 1033 |
| 1036 // For keeping track of how much data has survived | 1034 // For keeping track of how much data has survived |
| (...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 | 1975 |
| 1978 // To speed up scavenge collections new space string are kept | 1976 // To speed up scavenge collections new space string are kept |
| 1979 // separate from old space strings. | 1977 // separate from old space strings. |
| 1980 static List<Object*> new_space_strings_; | 1978 static List<Object*> new_space_strings_; |
| 1981 static List<Object*> old_space_strings_; | 1979 static List<Object*> old_space_strings_; |
| 1982 }; | 1980 }; |
| 1983 | 1981 |
| 1984 } } // namespace v8::internal | 1982 } } // namespace v8::internal |
| 1985 | 1983 |
| 1986 #endif // V8_HEAP_H_ | 1984 #endif // V8_HEAP_H_ |
| OLD | NEW |