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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 // Returns the size of object residing in non new spaces. | 963 // Returns the size of object residing in non new spaces. |
964 static int PromotedSpaceSize(); | 964 static int PromotedSpaceSize(); |
965 | 965 |
966 // Returns the amount of external memory registered since last global gc. | 966 // Returns the amount of external memory registered since last global gc. |
967 static int PromotedExternalMemorySize(); | 967 static int PromotedExternalMemorySize(); |
968 | 968 |
969 static int mc_count_; // how many mark-compact collections happened | 969 static int mc_count_; // how many mark-compact collections happened |
970 static int gc_count_; // how many gc happened | 970 static int gc_count_; // how many gc happened |
971 | 971 |
972 // Total length of the strings we failed to flatten since the last GC. | 972 // Total length of the strings we failed to flatten since the last GC. |
973 static int unflattended_strings_length_; | 973 static int unflattened_strings_length_; |
974 | 974 |
975 #define ROOT_ACCESSOR(type, name, camel_name) \ | 975 #define ROOT_ACCESSOR(type, name, camel_name) \ |
976 static inline void set_##name(type* value) { \ | 976 static inline void set_##name(type* value) { \ |
977 roots_[k##camel_name##RootIndex] = value; \ | 977 roots_[k##camel_name##RootIndex] = value; \ |
978 } | 978 } |
979 ROOT_LIST(ROOT_ACCESSOR) | 979 ROOT_LIST(ROOT_ACCESSOR) |
980 #undef ROOT_ACCESSOR | 980 #undef ROOT_ACCESSOR |
981 | 981 |
982 #ifdef DEBUG | 982 #ifdef DEBUG |
983 static bool allocation_allowed_; | 983 static bool allocation_allowed_; |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1763 | 1763 |
1764 // To speed up scavenge collections new space string are kept | 1764 // To speed up scavenge collections new space string are kept |
1765 // separate from old space strings. | 1765 // separate from old space strings. |
1766 static List<Object*> new_space_strings_; | 1766 static List<Object*> new_space_strings_; |
1767 static List<Object*> old_space_strings_; | 1767 static List<Object*> old_space_strings_; |
1768 }; | 1768 }; |
1769 | 1769 |
1770 } } // namespace v8::internal | 1770 } } // namespace v8::internal |
1771 | 1771 |
1772 #endif // V8_HEAP_H_ | 1772 #endif // V8_HEAP_H_ |
OLD | NEW |