| 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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 static size_t code_range_size_; | 881 static size_t code_range_size_; |
| 882 | 882 |
| 883 // For keeping track of how much data has survived | 883 // For keeping track of how much data has survived |
| 884 // scavenge since last new space expansion. | 884 // scavenge since last new space expansion. |
| 885 static int survived_since_last_expansion_; | 885 static int survived_since_last_expansion_; |
| 886 | 886 |
| 887 static int always_allocate_scope_depth_; | 887 static int always_allocate_scope_depth_; |
| 888 static int linear_allocation_scope_depth_; | 888 static int linear_allocation_scope_depth_; |
| 889 static bool context_disposed_pending_; | 889 static bool context_disposed_pending_; |
| 890 | 890 |
| 891 // The number of MapSpace pages is limited by the way we pack | |
| 892 // Map pointers during GC. | |
| 893 static const int kMaxMapSpaceSize = | |
| 894 (1 << (MapWord::kMapPageIndexBits)) * Page::kPageSize; | |
| 895 | |
| 896 #if defined(V8_TARGET_ARCH_X64) | 891 #if defined(V8_TARGET_ARCH_X64) |
| 897 static const int kMaxObjectSizeInNewSpace = 512*KB; | 892 static const int kMaxObjectSizeInNewSpace = 512*KB; |
| 898 #else | 893 #else |
| 899 static const int kMaxObjectSizeInNewSpace = 256*KB; | 894 static const int kMaxObjectSizeInNewSpace = 256*KB; |
| 900 #endif | 895 #endif |
| 901 | 896 |
| 902 static NewSpace new_space_; | 897 static NewSpace new_space_; |
| 903 static OldSpace* old_pointer_space_; | 898 static OldSpace* old_pointer_space_; |
| 904 static OldSpace* old_data_space_; | 899 static OldSpace* old_data_space_; |
| 905 static OldSpace* code_space_; | 900 static OldSpace* code_space_; |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 | 1671 |
| 1677 // To speed up scavenge collections new space string are kept | 1672 // To speed up scavenge collections new space string are kept |
| 1678 // separate from old space strings. | 1673 // separate from old space strings. |
| 1679 static List<Object*> new_space_strings_; | 1674 static List<Object*> new_space_strings_; |
| 1680 static List<Object*> old_space_strings_; | 1675 static List<Object*> old_space_strings_; |
| 1681 }; | 1676 }; |
| 1682 | 1677 |
| 1683 } } // namespace v8::internal | 1678 } } // namespace v8::internal |
| 1684 | 1679 |
| 1685 #endif // V8_HEAP_H_ | 1680 #endif // V8_HEAP_H_ |
| OLD | NEW |