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

Side by Side Diff: src/heap.h

Issue 2762008: Track ascii-ness of data in externalized strings. (Closed)
Patch Set: Extended tests. Created 10 years, 6 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 V(Object, termination_exception, TerminationException) \ 62 V(Object, termination_exception, TerminationException) \
63 V(Map, hash_table_map, HashTableMap) \ 63 V(Map, hash_table_map, HashTableMap) \
64 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ 64 V(FixedArray, empty_fixed_array, EmptyFixedArray) \
65 V(Map, string_map, StringMap) \ 65 V(Map, string_map, StringMap) \
66 V(Map, ascii_string_map, AsciiStringMap) \ 66 V(Map, ascii_string_map, AsciiStringMap) \
67 V(Map, symbol_map, SymbolMap) \ 67 V(Map, symbol_map, SymbolMap) \
68 V(Map, ascii_symbol_map, AsciiSymbolMap) \ 68 V(Map, ascii_symbol_map, AsciiSymbolMap) \
69 V(Map, cons_symbol_map, ConsSymbolMap) \ 69 V(Map, cons_symbol_map, ConsSymbolMap) \
70 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \ 70 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \
71 V(Map, external_symbol_map, ExternalSymbolMap) \ 71 V(Map, external_symbol_map, ExternalSymbolMap) \
72 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \
72 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \ 73 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \
73 V(Map, cons_string_map, ConsStringMap) \ 74 V(Map, cons_string_map, ConsStringMap) \
74 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \ 75 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \
75 V(Map, external_string_map, ExternalStringMap) \ 76 V(Map, external_string_map, ExternalStringMap) \
77 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \
76 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \ 78 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \
77 V(Map, undetectable_string_map, UndetectableStringMap) \ 79 V(Map, undetectable_string_map, UndetectableStringMap) \
78 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ 80 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \
79 V(Map, pixel_array_map, PixelArrayMap) \ 81 V(Map, pixel_array_map, PixelArrayMap) \
80 V(Map, external_byte_array_map, ExternalByteArrayMap) \ 82 V(Map, external_byte_array_map, ExternalByteArrayMap) \
81 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ 83 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \
82 V(Map, external_short_array_map, ExternalShortArrayMap) \ 84 V(Map, external_short_array_map, ExternalShortArrayMap) \
83 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ 85 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \
84 V(Map, external_int_array_map, ExternalIntArrayMap) \ 86 V(Map, external_int_array_map, ExternalIntArrayMap) \
85 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ 87 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 1934
1933 // To speed up scavenge collections new space string are kept 1935 // To speed up scavenge collections new space string are kept
1934 // separate from old space strings. 1936 // separate from old space strings.
1935 static List<Object*> new_space_strings_; 1937 static List<Object*> new_space_strings_;
1936 static List<Object*> old_space_strings_; 1938 static List<Object*> old_space_strings_;
1937 }; 1939 };
1938 1940
1939 } } // namespace v8::internal 1941 } } // namespace v8::internal
1940 1942
1941 #endif // V8_HEAP_H_ 1943 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698