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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 Object* prototype); | 1251 Object* prototype); |
1252 | 1252 |
1253 static GCTracer* tracer_; | 1253 static GCTracer* tracer_; |
1254 | 1254 |
1255 | 1255 |
1256 // Initializes the number to string cache based on the max semispace size. | 1256 // Initializes the number to string cache based on the max semispace size. |
1257 static Object* InitializeNumberStringCache(); | 1257 static Object* InitializeNumberStringCache(); |
1258 // Flush the number to string cache. | 1258 // Flush the number to string cache. |
1259 static void FlushNumberStringCache(); | 1259 static void FlushNumberStringCache(); |
1260 | 1260 |
1261 // Flush code from functions we do not expect to use again. The code will | |
1262 // be replaced with a lazy compilable version. | |
1263 static void FlushCode(); | |
1264 | |
1265 static void UpdateSurvivalRateTrend(int start_new_space_size); | 1261 static void UpdateSurvivalRateTrend(int start_new_space_size); |
1266 | 1262 |
1267 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; | 1263 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; |
1268 | 1264 |
1269 static const int kYoungSurvivalRateThreshold = 90; | 1265 static const int kYoungSurvivalRateThreshold = 90; |
1270 static const int kYoungSurvivalRateAllowedDeviation = 15; | 1266 static const int kYoungSurvivalRateAllowedDeviation = 15; |
1271 | 1267 |
1272 static int young_survivors_after_last_gc_; | 1268 static int young_survivors_after_last_gc_; |
1273 static int high_survival_rate_period_length_; | 1269 static int high_survival_rate_period_length_; |
1274 static double survival_rate_; | 1270 static double survival_rate_; |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 | 1976 |
1981 // To speed up scavenge collections new space string are kept | 1977 // To speed up scavenge collections new space string are kept |
1982 // separate from old space strings. | 1978 // separate from old space strings. |
1983 static List<Object*> new_space_strings_; | 1979 static List<Object*> new_space_strings_; |
1984 static List<Object*> old_space_strings_; | 1980 static List<Object*> old_space_strings_; |
1985 }; | 1981 }; |
1986 | 1982 |
1987 } } // namespace v8::internal | 1983 } } // namespace v8::internal |
1988 | 1984 |
1989 #endif // V8_HEAP_H_ | 1985 #endif // V8_HEAP_H_ |
OLD | NEW |