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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 }; | 931 }; |
932 | 932 |
933 static Object* NumberToString(Object* number); | 933 static Object* NumberToString(Object* number); |
934 | 934 |
935 static Map* MapForExternalArrayType(ExternalArrayType array_type); | 935 static Map* MapForExternalArrayType(ExternalArrayType array_type); |
936 static RootListIndex RootIndexForExternalArrayType( | 936 static RootListIndex RootIndexForExternalArrayType( |
937 ExternalArrayType array_type); | 937 ExternalArrayType array_type); |
938 | 938 |
939 static void RecordStats(HeapStats* stats); | 939 static void RecordStats(HeapStats* stats); |
940 | 940 |
| 941 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } |
| 942 |
941 private: | 943 private: |
942 static int reserved_semispace_size_; | 944 static int reserved_semispace_size_; |
943 static int max_semispace_size_; | 945 static int max_semispace_size_; |
944 static int initial_semispace_size_; | 946 static int initial_semispace_size_; |
945 static int max_old_generation_size_; | 947 static int max_old_generation_size_; |
946 static size_t code_range_size_; | 948 static size_t code_range_size_; |
947 | 949 |
948 // For keeping track of how much data has survived | 950 // For keeping track of how much data has survived |
949 // scavenge since last new space expansion. | 951 // scavenge since last new space expansion. |
950 static int survived_since_last_expansion_; | 952 static int survived_since_last_expansion_; |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 | 1800 |
1799 // To speed up scavenge collections new space string are kept | 1801 // To speed up scavenge collections new space string are kept |
1800 // separate from old space strings. | 1802 // separate from old space strings. |
1801 static List<Object*> new_space_strings_; | 1803 static List<Object*> new_space_strings_; |
1802 static List<Object*> old_space_strings_; | 1804 static List<Object*> old_space_strings_; |
1803 }; | 1805 }; |
1804 | 1806 |
1805 } } // namespace v8::internal | 1807 } } // namespace v8::internal |
1806 | 1808 |
1807 #endif // V8_HEAP_H_ | 1809 #endif // V8_HEAP_H_ |
OLD | NEW |