OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ | 130 V(Map, undetectable_ascii_string_map, UndetectableAsciiStringMap) \ |
131 V(Map, external_pixel_array_map, ExternalPixelArrayMap) \ | 131 V(Map, external_pixel_array_map, ExternalPixelArrayMap) \ |
132 V(Map, external_byte_array_map, ExternalByteArrayMap) \ | 132 V(Map, external_byte_array_map, ExternalByteArrayMap) \ |
133 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ | 133 V(Map, external_unsigned_byte_array_map, ExternalUnsignedByteArrayMap) \ |
134 V(Map, external_short_array_map, ExternalShortArrayMap) \ | 134 V(Map, external_short_array_map, ExternalShortArrayMap) \ |
135 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ | 135 V(Map, external_unsigned_short_array_map, ExternalUnsignedShortArrayMap) \ |
136 V(Map, external_int_array_map, ExternalIntArrayMap) \ | 136 V(Map, external_int_array_map, ExternalIntArrayMap) \ |
137 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ | 137 V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ |
138 V(Map, external_float_array_map, ExternalFloatArrayMap) \ | 138 V(Map, external_float_array_map, ExternalFloatArrayMap) \ |
139 V(Map, external_double_array_map, ExternalDoubleArrayMap) \ | 139 V(Map, external_double_array_map, ExternalDoubleArrayMap) \ |
140 V(ExternalArray, empty_external_pixel_array, \ | |
141 EmptyExternalPixelArray) \ | |
Hannes Payer (out of office)
2013/05/15 14:14:17
Can we move empty_external_pixel_array after empty
| |
142 V(ExternalArray, empty_external_byte_array, \ | |
143 EmptyExternalByteArray) \ | |
144 V(ExternalArray, empty_external_unsigned_byte_array, \ | |
145 EmptyExternalUnsignedByteArray) \ | |
146 V(ExternalArray, empty_external_short_array, EmptyExternalShortArray) \ | |
147 V(ExternalArray, empty_external_unsigned_short_array, \ | |
148 EmptyExternalUnsignedShortArray) \ | |
149 V(ExternalArray, empty_external_int_array, EmptyExternalIntArray) \ | |
150 V(ExternalArray, empty_external_unsigned_int_array, \ | |
151 EmptyExternalUnsignedIntArray) \ | |
152 V(ExternalArray, empty_external_float_array, EmptyExternalFloatArray) \ | |
153 V(ExternalArray, empty_external_double_array, EmptyExternalDoubleArray) \ | |
140 V(Map, non_strict_arguments_elements_map, NonStrictArgumentsElementsMap) \ | 154 V(Map, non_strict_arguments_elements_map, NonStrictArgumentsElementsMap) \ |
141 V(Map, function_context_map, FunctionContextMap) \ | 155 V(Map, function_context_map, FunctionContextMap) \ |
142 V(Map, catch_context_map, CatchContextMap) \ | 156 V(Map, catch_context_map, CatchContextMap) \ |
143 V(Map, with_context_map, WithContextMap) \ | 157 V(Map, with_context_map, WithContextMap) \ |
144 V(Map, block_context_map, BlockContextMap) \ | 158 V(Map, block_context_map, BlockContextMap) \ |
145 V(Map, module_context_map, ModuleContextMap) \ | 159 V(Map, module_context_map, ModuleContextMap) \ |
146 V(Map, global_context_map, GlobalContextMap) \ | 160 V(Map, global_context_map, GlobalContextMap) \ |
147 V(Map, oddball_map, OddballMap) \ | 161 V(Map, oddball_map, OddballMap) \ |
148 V(Map, message_object_map, JSMessageObjectMap) \ | 162 V(Map, message_object_map, JSMessageObjectMap) \ |
149 V(Map, foreign_map, ForeignMap) \ | 163 V(Map, foreign_map, ForeignMap) \ |
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1619 MUST_USE_RESULT MaybeObject* NumberToString( | 1633 MUST_USE_RESULT MaybeObject* NumberToString( |
1620 Object* number, bool check_number_string_cache = true, | 1634 Object* number, bool check_number_string_cache = true, |
1621 PretenureFlag pretenure = NOT_TENURED); | 1635 PretenureFlag pretenure = NOT_TENURED); |
1622 MUST_USE_RESULT MaybeObject* Uint32ToString( | 1636 MUST_USE_RESULT MaybeObject* Uint32ToString( |
1623 uint32_t value, bool check_number_string_cache = true); | 1637 uint32_t value, bool check_number_string_cache = true); |
1624 | 1638 |
1625 Map* MapForExternalArrayType(ExternalArrayType array_type); | 1639 Map* MapForExternalArrayType(ExternalArrayType array_type); |
1626 RootListIndex RootIndexForExternalArrayType( | 1640 RootListIndex RootIndexForExternalArrayType( |
1627 ExternalArrayType array_type); | 1641 ExternalArrayType array_type); |
1628 | 1642 |
1643 RootListIndex RootIndexForEmptyExternalArray(ElementsKind kind); | |
1644 ExternalArray* EmptyExternalArrayForMap(Map* map); | |
1645 | |
1629 void RecordStats(HeapStats* stats, bool take_snapshot = false); | 1646 void RecordStats(HeapStats* stats, bool take_snapshot = false); |
1630 | 1647 |
1631 // Copy block of memory from src to dst. Size of block should be aligned | 1648 // Copy block of memory from src to dst. Size of block should be aligned |
1632 // by pointer size. | 1649 // by pointer size. |
1633 static inline void CopyBlock(Address dst, Address src, int byte_size); | 1650 static inline void CopyBlock(Address dst, Address src, int byte_size); |
1634 | 1651 |
1635 // Optimized version of memmove for blocks with pointer size aligned sizes and | 1652 // Optimized version of memmove for blocks with pointer size aligned sizes and |
1636 // pointer size aligned addresses. | 1653 // pointer size aligned addresses. |
1637 static inline void MoveBlock(Address dst, Address src, int byte_size); | 1654 static inline void MoveBlock(Address dst, Address src, int byte_size); |
1638 | 1655 |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2133 ElementsKind elements_kind, | 2150 ElementsKind elements_kind, |
2134 PretenureFlag pretenure = NOT_TENURED); | 2151 PretenureFlag pretenure = NOT_TENURED); |
2135 | 2152 |
2136 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithAllocationSite( | 2153 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithAllocationSite( |
2137 ElementsKind elements_kind, | 2154 ElementsKind elements_kind, |
2138 Handle<Object> allocation_site_info_payload); | 2155 Handle<Object> allocation_site_info_payload); |
2139 | 2156 |
2140 // Allocate empty fixed array. | 2157 // Allocate empty fixed array. |
2141 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); | 2158 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); |
2142 | 2159 |
2160 // Allocate empty external array of given type. | |
2161 MUST_USE_RESULT MaybeObject* AllocateEmptyExternalArray( | |
2162 ExternalArrayType array_type); | |
2163 | |
2143 // Allocate empty fixed double array. | 2164 // Allocate empty fixed double array. |
2144 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedDoubleArray(); | 2165 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedDoubleArray(); |
2145 | 2166 |
2146 // Performs a minor collection in new generation. | 2167 // Performs a minor collection in new generation. |
2147 void Scavenge(); | 2168 void Scavenge(); |
2148 | 2169 |
2149 static String* UpdateNewSpaceReferenceInExternalStringTableEntry( | 2170 static String* UpdateNewSpaceReferenceInExternalStringTableEntry( |
2150 Heap* heap, | 2171 Heap* heap, |
2151 Object** pointer); | 2172 Object** pointer); |
2152 | 2173 |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3078 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3099 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
3079 | 3100 |
3080 private: | 3101 private: |
3081 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3102 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3082 }; | 3103 }; |
3083 #endif // DEBUG | 3104 #endif // DEBUG |
3084 | 3105 |
3085 } } // namespace v8::internal | 3106 } } // namespace v8::internal |
3086 | 3107 |
3087 #endif // V8_HEAP_H_ | 3108 #endif // V8_HEAP_H_ |
OLD | NEW |