| 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 #define SYMBOL_INDEX_DECLARATION(name, str) k##name##RootIndex, | 932 #define SYMBOL_INDEX_DECLARATION(name, str) k##name##RootIndex, |
| 933 SYMBOL_LIST(SYMBOL_INDEX_DECLARATION) | 933 SYMBOL_LIST(SYMBOL_INDEX_DECLARATION) |
| 934 #undef SYMBOL_DECLARATION | 934 #undef SYMBOL_DECLARATION |
| 935 | 935 |
| 936 kSymbolTableRootIndex, | 936 kSymbolTableRootIndex, |
| 937 kStrongRootListLength = kSymbolTableRootIndex, | 937 kStrongRootListLength = kSymbolTableRootIndex, |
| 938 kRootListLength | 938 kRootListLength |
| 939 }; | 939 }; |
| 940 | 940 |
| 941 static Object* NumberToString(Object* number); | 941 static Object* NumberToString(Object* number, |
| 942 bool check_number_string_cache = true); |
| 942 | 943 |
| 943 static Map* MapForExternalArrayType(ExternalArrayType array_type); | 944 static Map* MapForExternalArrayType(ExternalArrayType array_type); |
| 944 static RootListIndex RootIndexForExternalArrayType( | 945 static RootListIndex RootIndexForExternalArrayType( |
| 945 ExternalArrayType array_type); | 946 ExternalArrayType array_type); |
| 946 | 947 |
| 947 static void RecordStats(HeapStats* stats); | 948 static void RecordStats(HeapStats* stats); |
| 948 | 949 |
| 949 // Copy block of memory from src to dst. Size of block should be aligned | 950 // Copy block of memory from src to dst. Size of block should be aligned |
| 950 // by pointer size. | 951 // by pointer size. |
| 951 static inline void CopyBlock(Object** dst, Object** src, int byte_size); | 952 static inline void CopyBlock(Object** dst, Object** src, int byte_size); |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 | 1828 |
| 1828 // To speed up scavenge collections new space string are kept | 1829 // To speed up scavenge collections new space string are kept |
| 1829 // separate from old space strings. | 1830 // separate from old space strings. |
| 1830 static List<Object*> new_space_strings_; | 1831 static List<Object*> new_space_strings_; |
| 1831 static List<Object*> old_space_strings_; | 1832 static List<Object*> old_space_strings_; |
| 1832 }; | 1833 }; |
| 1833 | 1834 |
| 1834 } } // namespace v8::internal | 1835 } } // namespace v8::internal |
| 1835 | 1836 |
| 1836 #endif // V8_HEAP_H_ | 1837 #endif // V8_HEAP_H_ |
| OLD | NEW |