| 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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 static inline bool ShouldBePromoted(Address old_address, int object_size); | 1012 static inline bool ShouldBePromoted(Address old_address, int object_size); |
| 1013 | 1013 |
| 1014 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } | 1014 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } |
| 1015 | 1015 |
| 1016 static void ClearJSFunctionResultCaches(); | 1016 static void ClearJSFunctionResultCaches(); |
| 1017 | 1017 |
| 1018 static GCTracer* tracer() { return tracer_; } | 1018 static GCTracer* tracer() { return tracer_; } |
| 1019 | 1019 |
| 1020 private: | 1020 private: |
| 1021 Heap(); | 1021 Heap(); |
| 1022 | 1022 |
| 1023 static int reserved_semispace_size_; | 1023 static int reserved_semispace_size_; |
| 1024 static int max_semispace_size_; | 1024 static int max_semispace_size_; |
| 1025 static int initial_semispace_size_; | 1025 static int initial_semispace_size_; |
| 1026 static int max_old_generation_size_; | 1026 static int max_old_generation_size_; |
| 1027 static size_t code_range_size_; | 1027 static size_t code_range_size_; |
| 1028 | 1028 |
| 1029 // For keeping track of how much data has survived | 1029 // For keeping track of how much data has survived |
| 1030 // scavenge since last new space expansion. | 1030 // scavenge since last new space expansion. |
| 1031 static int survived_since_last_expansion_; | 1031 static int survived_since_last_expansion_; |
| 1032 | 1032 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 static void FlushNumberStringCache(); | 1262 static void FlushNumberStringCache(); |
| 1263 | 1263 |
| 1264 static const int kInitialSymbolTableSize = 2048; | 1264 static const int kInitialSymbolTableSize = 2048; |
| 1265 static const int kInitialEvalCacheSize = 64; | 1265 static const int kInitialEvalCacheSize = 64; |
| 1266 | 1266 |
| 1267 friend class Factory; | 1267 friend class Factory; |
| 1268 friend class DisallowAllocationFailure; | 1268 friend class DisallowAllocationFailure; |
| 1269 friend class AlwaysAllocateScope; | 1269 friend class AlwaysAllocateScope; |
| 1270 friend class LinearAllocationScope; | 1270 friend class LinearAllocationScope; |
| 1271 friend class Isolate; | 1271 friend class Isolate; |
| 1272 | 1272 |
| 1273 DISALLOW_COPY_AND_ASSIGN(Heap); | 1273 DISALLOW_COPY_AND_ASSIGN(Heap); |
| 1274 }; | 1274 }; |
| 1275 | 1275 |
| 1276 | 1276 |
| 1277 class HeapStats { | 1277 class HeapStats { |
| 1278 public: | 1278 public: |
| 1279 int* start_marker; | 1279 int* start_marker; |
| 1280 int* new_space_size; | 1280 int* new_space_size; |
| 1281 int* new_space_capacity; | 1281 int* new_space_capacity; |
| 1282 int* old_pointer_space_size; | 1282 int* old_pointer_space_size; |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1926 | 1926 |
| 1927 // To speed up scavenge collections new space string are kept | 1927 // To speed up scavenge collections new space string are kept |
| 1928 // separate from old space strings. | 1928 // separate from old space strings. |
| 1929 static List<Object*> new_space_strings_; | 1929 static List<Object*> new_space_strings_; |
| 1930 static List<Object*> old_space_strings_; | 1930 static List<Object*> old_space_strings_; |
| 1931 }; | 1931 }; |
| 1932 | 1932 |
| 1933 } } // namespace v8::internal | 1933 } } // namespace v8::internal |
| 1934 | 1934 |
| 1935 #endif // V8_HEAP_H_ | 1935 #endif // V8_HEAP_H_ |
| OLD | NEW |