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