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