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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 return (PromotedSpaceSize() + PromotedExternalMemorySize()) | 820 return (PromotedSpaceSize() + PromotedExternalMemorySize()) |
821 > old_gen_allocation_limit_; | 821 > old_gen_allocation_limit_; |
822 } | 822 } |
823 | 823 |
824 private: | 824 private: |
825 static int semispace_size_; | 825 static int semispace_size_; |
826 static int initial_semispace_size_; | 826 static int initial_semispace_size_; |
827 static int young_generation_size_; | 827 static int young_generation_size_; |
828 static int old_generation_size_; | 828 static int old_generation_size_; |
829 | 829 |
830 static int new_space_growth_limit_; | 830 // For keeping track of how much data has survived |
831 static int scavenge_count_; | 831 // scavenge since last new space expansion. |
| 832 static int survived_since_last_expansion_; |
832 | 833 |
833 static int always_allocate_scope_depth_; | 834 static int always_allocate_scope_depth_; |
834 static bool context_disposed_pending_; | 835 static bool context_disposed_pending_; |
835 | 836 |
836 static const int kMaxMapSpaceSize = 8*MB; | 837 static const int kMaxMapSpaceSize = 8*MB; |
837 | 838 |
838 static NewSpace new_space_; | 839 static NewSpace new_space_; |
839 static OldSpace* old_pointer_space_; | 840 static OldSpace* old_pointer_space_; |
840 static OldSpace* old_data_space_; | 841 static OldSpace* old_data_space_; |
841 static OldSpace* code_space_; | 842 static OldSpace* code_space_; |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 int marked_count_; | 1309 int marked_count_; |
1309 | 1310 |
1310 // The count from the end of the previous full GC. Will be zero if there | 1311 // The count from the end of the previous full GC. Will be zero if there |
1311 // was no previous full GC. | 1312 // was no previous full GC. |
1312 int previous_marked_count_; | 1313 int previous_marked_count_; |
1313 }; | 1314 }; |
1314 | 1315 |
1315 } } // namespace v8::internal | 1316 } } // namespace v8::internal |
1316 | 1317 |
1317 #endif // V8_HEAP_H_ | 1318 #endif // V8_HEAP_H_ |
OLD | NEW |