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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 | 845 |
846 // For keeping track of how much data has survived | 846 // For keeping track of how much data has survived |
847 // scavenge since last new space expansion. | 847 // scavenge since last new space expansion. |
848 static int survived_since_last_expansion_; | 848 static int survived_since_last_expansion_; |
849 | 849 |
850 static int always_allocate_scope_depth_; | 850 static int always_allocate_scope_depth_; |
851 static bool context_disposed_pending_; | 851 static bool context_disposed_pending_; |
852 | 852 |
853 static const int kMaxMapSpaceSize = 8*MB; | 853 static const int kMaxMapSpaceSize = 8*MB; |
854 | 854 |
| 855 #if defined(V8_TARGET_ARCH_X64) |
| 856 static const int kMaxObjectSizeInNewSpace = 512*KB; |
| 857 #else |
855 static const int kMaxObjectSizeInNewSpace = 256*KB; | 858 static const int kMaxObjectSizeInNewSpace = 256*KB; |
| 859 #endif |
856 | 860 |
857 static NewSpace new_space_; | 861 static NewSpace new_space_; |
858 static OldSpace* old_pointer_space_; | 862 static OldSpace* old_pointer_space_; |
859 static OldSpace* old_data_space_; | 863 static OldSpace* old_data_space_; |
860 static OldSpace* code_space_; | 864 static OldSpace* code_space_; |
861 static MapSpace* map_space_; | 865 static MapSpace* map_space_; |
862 static CellSpace* cell_space_; | 866 static CellSpace* cell_space_; |
863 static LargeObjectSpace* lo_space_; | 867 static LargeObjectSpace* lo_space_; |
864 static HeapState gc_state_; | 868 static HeapState gc_state_; |
865 | 869 |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1467 int marked_count_; | 1471 int marked_count_; |
1468 | 1472 |
1469 // The count from the end of the previous full GC. Will be zero if there | 1473 // The count from the end of the previous full GC. Will be zero if there |
1470 // was no previous full GC. | 1474 // was no previous full GC. |
1471 int previous_marked_count_; | 1475 int previous_marked_count_; |
1472 }; | 1476 }; |
1473 | 1477 |
1474 } } // namespace v8::internal | 1478 } } // namespace v8::internal |
1475 | 1479 |
1476 #endif // V8_HEAP_H_ | 1480 #endif // V8_HEAP_H_ |
OLD | NEW |