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

Side by Side Diff: src/heap.h

Issue 8344079: Shave 39% from snapshot size. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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 | « src/assembler.cc ('k') | src/ia32/code-stubs-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 V(Map, free_space_map, FreeSpaceMap) \ 57 V(Map, free_space_map, FreeSpaceMap) \
58 V(Map, one_pointer_filler_map, OnePointerFillerMap) \ 58 V(Map, one_pointer_filler_map, OnePointerFillerMap) \
59 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \ 59 V(Map, two_pointer_filler_map, TwoPointerFillerMap) \
60 /* Cluster the most popular ones in a few cache lines here at the top. */ \ 60 /* Cluster the most popular ones in a few cache lines here at the top. */ \
61 V(Smi, store_buffer_top, StoreBufferTop) \ 61 V(Smi, store_buffer_top, StoreBufferTop) \
62 V(Oddball, undefined_value, UndefinedValue) \ 62 V(Oddball, undefined_value, UndefinedValue) \
63 V(Oddball, the_hole_value, TheHoleValue) \ 63 V(Oddball, the_hole_value, TheHoleValue) \
64 V(Oddball, null_value, NullValue) \ 64 V(Oddball, null_value, NullValue) \
65 V(Oddball, true_value, TrueValue) \ 65 V(Oddball, true_value, TrueValue) \
66 V(Oddball, false_value, FalseValue) \ 66 V(Oddball, false_value, FalseValue) \
67 V(Oddball, arguments_marker, ArgumentsMarker) \ 67 V(Map, global_property_cell_map, GlobalPropertyCellMap) \
68 V(Oddball, frame_alignment_marker, FrameAlignmentMarker) \ 68 V(Map, shared_function_info_map, SharedFunctionInfoMap) \
69 V(Map, meta_map, MetaMap) \
70 V(Map, ascii_symbol_map, AsciiSymbolMap) \
69 V(Map, heap_number_map, HeapNumberMap) \ 71 V(Map, heap_number_map, HeapNumberMap) \
70 V(Map, global_context_map, GlobalContextMap) \ 72 V(Map, global_context_map, GlobalContextMap) \
71 V(Map, fixed_array_map, FixedArrayMap) \ 73 V(Map, fixed_array_map, FixedArrayMap) \
74 V(Map, code_map, CodeMap) \
72 V(Map, serialized_scope_info_map, SerializedScopeInfoMap) \ 75 V(Map, serialized_scope_info_map, SerializedScopeInfoMap) \
73 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ 76 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
74 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 77 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
75 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 78 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
76 V(Map, meta_map, MetaMap) \
77 V(Map, hash_table_map, HashTableMap) \ 79 V(Map, hash_table_map, HashTableMap) \
80 V(FixedArray, empty_fixed_array, EmptyFixedArray) \
81 V(ByteArray, empty_byte_array, EmptyByteArray) \
82 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \
83 V(String, empty_string, EmptyString) \
84 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
78 V(Smi, stack_limit, StackLimit) \ 85 V(Smi, stack_limit, StackLimit) \
86 V(Oddball, frame_alignment_marker, FrameAlignmentMarker) \
87 V(Oddball, arguments_marker, ArgumentsMarker) \
79 V(FixedArray, number_string_cache, NumberStringCache) \ 88 V(FixedArray, number_string_cache, NumberStringCache) \
80 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ 89 V(Object, instanceof_cache_function, InstanceofCacheFunction) \
81 V(Object, instanceof_cache_map, InstanceofCacheMap) \ 90 V(Object, instanceof_cache_map, InstanceofCacheMap) \
82 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ 91 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \
83 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ 92 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \
84 V(FixedArray, string_split_cache, StringSplitCache) \ 93 V(FixedArray, string_split_cache, StringSplitCache) \
85 V(Object, termination_exception, TerminationException) \ 94 V(Object, termination_exception, TerminationException) \
86 V(FixedArray, empty_fixed_array, EmptyFixedArray) \
87 V(ByteArray, empty_byte_array, EmptyByteArray) \
88 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \
89 V(String, empty_string, EmptyString) \
90 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
91 V(Map, string_map, StringMap) \ 95 V(Map, string_map, StringMap) \
92 V(Map, ascii_string_map, AsciiStringMap) \ 96 V(Map, ascii_string_map, AsciiStringMap) \
93 V(Map, symbol_map, SymbolMap) \ 97 V(Map, symbol_map, SymbolMap) \
94 V(Map, cons_string_map, ConsStringMap) \ 98 V(Map, cons_string_map, ConsStringMap) \
95 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \ 99 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \
96 V(Map, sliced_string_map, SlicedStringMap) \ 100 V(Map, sliced_string_map, SlicedStringMap) \
97 V(Map, sliced_ascii_string_map, SlicedAsciiStringMap) \ 101 V(Map, sliced_ascii_string_map, SlicedAsciiStringMap) \
98 V(Map, ascii_symbol_map, AsciiSymbolMap) \
99 V(Map, cons_symbol_map, ConsSymbolMap) \ 102 V(Map, cons_symbol_map, ConsSymbolMap) \
100 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \ 103 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \
101 V(Map, external_symbol_map, ExternalSymbolMap) \ 104 V(Map, external_symbol_map, ExternalSymbolMap) \
102 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \ 105 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \
103 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \ 106 V(Map, external_ascii_symbol_map, ExternalAsciiSymbolMap) \
104 V(Map, external_string_map, ExternalStringMap) \ 107 V(Map, external_string_map, ExternalStringMap) \
105 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \ 108 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \
106 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \ 109 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \
107 V(Map, undetectable_string_map, UndetectableStringMap) \ 110 V(Map, undetectable_string_map, UndetectableStringMap) \
108 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ 111 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \
109 V(Map, external_pixel_array_map, ExternalPixelArrayMap) \ 112 V(Map, external_pixel_array_map, ExternalPixelArrayMap) \
110 V(Map, external_byte_array_map, ExternalByteArrayMap) \ 113 V(Map, external_byte_array_map, ExternalByteArrayMap) \
111 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ 114 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \
112 V(Map, external_short_array_map, ExternalShortArrayMap) \ 115 V(Map, external_short_array_map, ExternalShortArrayMap) \
113 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ 116 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \
114 V(Map, external_int_array_map, ExternalIntArrayMap) \ 117 V(Map, external_int_array_map, ExternalIntArrayMap) \
115 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ 118 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \
116 V(Map, external_float_array_map, ExternalFloatArrayMap) \ 119 V(Map, external_float_array_map, ExternalFloatArrayMap) \
117 V(Map, external_double_array_map, ExternalDoubleArrayMap) \ 120 V(Map, external_double_array_map, ExternalDoubleArrayMap) \
118 V(Map, non_strict_arguments_elements_map, NonStrictArgumentsElementsMap) \ 121 V(Map, non_strict_arguments_elements_map, NonStrictArgumentsElementsMap) \
119 V(Map, function_context_map, FunctionContextMap) \ 122 V(Map, function_context_map, FunctionContextMap) \
120 V(Map, catch_context_map, CatchContextMap) \ 123 V(Map, catch_context_map, CatchContextMap) \
121 V(Map, with_context_map, WithContextMap) \ 124 V(Map, with_context_map, WithContextMap) \
122 V(Map, block_context_map, BlockContextMap) \ 125 V(Map, block_context_map, BlockContextMap) \
123 V(Map, code_map, CodeMap) \
124 V(Map, oddball_map, OddballMap) \ 126 V(Map, oddball_map, OddballMap) \
125 V(Map, global_property_cell_map, GlobalPropertyCellMap) \
126 V(Map, shared_function_info_map, SharedFunctionInfoMap) \
127 V(Map, message_object_map, JSMessageObjectMap) \ 127 V(Map, message_object_map, JSMessageObjectMap) \
128 V(Map, foreign_map, ForeignMap) \ 128 V(Map, foreign_map, ForeignMap) \
129 V(HeapNumber, nan_value, NanValue) \ 129 V(HeapNumber, nan_value, NanValue) \
130 V(HeapNumber, infinity_value, InfinityValue) \ 130 V(HeapNumber, infinity_value, InfinityValue) \
131 V(HeapNumber, minus_zero_value, MinusZeroValue) \ 131 V(HeapNumber, minus_zero_value, MinusZeroValue) \
132 V(Map, neander_map, NeanderMap) \ 132 V(Map, neander_map, NeanderMap) \
133 V(JSObject, message_listeners, MessageListeners) \ 133 V(JSObject, message_listeners, MessageListeners) \
134 V(Foreign, prototype_accessors, PrototypeAccessors) \ 134 V(Foreign, prototype_accessors, PrototypeAccessors) \
135 V(NumberDictionary, code_stubs, CodeStubs) \ 135 V(NumberDictionary, code_stubs, CodeStubs) \
136 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ 136 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 } 1090 }
1091 1091
1092 void public_set_store_buffer_top(Address* top) { 1092 void public_set_store_buffer_top(Address* top) {
1093 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top); 1093 roots_[kStoreBufferTopRootIndex] = reinterpret_cast<Smi*>(top);
1094 } 1094 }
1095 1095
1096 // Update the next script id. 1096 // Update the next script id.
1097 inline void SetLastScriptId(Object* last_script_id); 1097 inline void SetLastScriptId(Object* last_script_id);
1098 1098
1099 // Generated code can embed this address to get access to the roots. 1099 // Generated code can embed this address to get access to the roots.
1100 Object** roots_address() { return roots_; } 1100 Object** roots_array_start() { return roots_; }
1101 1101
1102 Address* store_buffer_top_address() { 1102 Address* store_buffer_top_address() {
1103 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]); 1103 return reinterpret_cast<Address*>(&roots_[kStoreBufferTopRootIndex]);
1104 } 1104 }
1105 1105
1106 // Get address of global contexts list for serialization support. 1106 // Get address of global contexts list for serialization support.
1107 Object** global_contexts_list_address() { 1107 Object** global_contexts_list_address() {
1108 return &global_contexts_list_; 1108 return &global_contexts_list_;
1109 } 1109 }
1110 1110
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 2468
2469 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2469 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2470 }; 2470 };
2471 #endif // DEBUG || LIVE_OBJECT_LIST 2471 #endif // DEBUG || LIVE_OBJECT_LIST
2472 2472
2473 } } // namespace v8::internal 2473 } } // namespace v8::internal
2474 2474
2475 #undef HEAP 2475 #undef HEAP
2476 2476
2477 #endif // V8_HEAP_H_ 2477 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698