Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/heap.h

Issue 1602010: Add number string cache lookup for heap numbers to generatred code (on top of... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698