| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 EmptyExternalUint8ClampedArray) \ | 157 EmptyExternalUint8ClampedArray) \ |
| 158 V(Map, fixed_uint8_array_map, FixedUint8ArrayMap) \ | 158 V(Map, fixed_uint8_array_map, FixedUint8ArrayMap) \ |
| 159 V(Map, fixed_int8_array_map, FixedInt8ArrayMap) \ | 159 V(Map, fixed_int8_array_map, FixedInt8ArrayMap) \ |
| 160 V(Map, fixed_uint16_array_map, FixedUint16ArrayMap) \ | 160 V(Map, fixed_uint16_array_map, FixedUint16ArrayMap) \ |
| 161 V(Map, fixed_int16_array_map, FixedInt16ArrayMap) \ | 161 V(Map, fixed_int16_array_map, FixedInt16ArrayMap) \ |
| 162 V(Map, fixed_uint32_array_map, FixedUint32ArrayMap) \ | 162 V(Map, fixed_uint32_array_map, FixedUint32ArrayMap) \ |
| 163 V(Map, fixed_int32_array_map, FixedInt32ArrayMap) \ | 163 V(Map, fixed_int32_array_map, FixedInt32ArrayMap) \ |
| 164 V(Map, fixed_float32_array_map, FixedFloat32ArrayMap) \ | 164 V(Map, fixed_float32_array_map, FixedFloat32ArrayMap) \ |
| 165 V(Map, fixed_float64_array_map, FixedFloat64ArrayMap) \ | 165 V(Map, fixed_float64_array_map, FixedFloat64ArrayMap) \ |
| 166 V(Map, fixed_uint8_clamped_array_map, FixedUint8ClampedArrayMap) \ | 166 V(Map, fixed_uint8_clamped_array_map, FixedUint8ClampedArrayMap) \ |
| 167 V(FixedTypedArrayBase, empty_fixed_uint8_array, EmptyFixedUint8Array) \ |
| 168 V(FixedTypedArrayBase, empty_fixed_int8_array, EmptyFixedInt8Array) \ |
| 169 V(FixedTypedArrayBase, empty_fixed_uint16_array, EmptyFixedUint16Array) \ |
| 170 V(FixedTypedArrayBase, empty_fixed_int16_array, EmptyFixedInt16Array) \ |
| 171 V(FixedTypedArrayBase, empty_fixed_uint32_array, EmptyFixedUint32Array) \ |
| 172 V(FixedTypedArrayBase, empty_fixed_int32_array, EmptyFixedInt32Array) \ |
| 173 V(FixedTypedArrayBase, empty_fixed_float32_array, EmptyFixedFloat32Array) \ |
| 174 V(FixedTypedArrayBase, empty_fixed_float64_array, EmptyFixedFloat64Array) \ |
| 175 V(FixedTypedArrayBase, empty_fixed_uint8_clamped_array, \ |
| 176 EmptyFixedUint8ClampedArray) \ |
| 167 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ | 177 V(Map, sloppy_arguments_elements_map, SloppyArgumentsElementsMap) \ |
| 168 V(Map, function_context_map, FunctionContextMap) \ | 178 V(Map, function_context_map, FunctionContextMap) \ |
| 169 V(Map, catch_context_map, CatchContextMap) \ | 179 V(Map, catch_context_map, CatchContextMap) \ |
| 170 V(Map, with_context_map, WithContextMap) \ | 180 V(Map, with_context_map, WithContextMap) \ |
| 171 V(Map, block_context_map, BlockContextMap) \ | 181 V(Map, block_context_map, BlockContextMap) \ |
| 172 V(Map, module_context_map, ModuleContextMap) \ | 182 V(Map, module_context_map, ModuleContextMap) \ |
| 173 V(Map, global_context_map, GlobalContextMap) \ | 183 V(Map, global_context_map, GlobalContextMap) \ |
| 174 V(Map, oddball_map, OddballMap) \ | 184 V(Map, oddball_map, OddballMap) \ |
| 175 V(Map, message_object_map, JSMessageObjectMap) \ | 185 V(Map, message_object_map, JSMessageObjectMap) \ |
| 176 V(Map, foreign_map, ForeignMap) \ | 186 V(Map, foreign_map, ForeignMap) \ |
| (...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1641 | 1651 |
| 1642 Map* MapForFixedTypedArray(ExternalArrayType array_type); | 1652 Map* MapForFixedTypedArray(ExternalArrayType array_type); |
| 1643 RootListIndex RootIndexForFixedTypedArray( | 1653 RootListIndex RootIndexForFixedTypedArray( |
| 1644 ExternalArrayType array_type); | 1654 ExternalArrayType array_type); |
| 1645 | 1655 |
| 1646 Map* MapForExternalArrayType(ExternalArrayType array_type); | 1656 Map* MapForExternalArrayType(ExternalArrayType array_type); |
| 1647 RootListIndex RootIndexForExternalArrayType( | 1657 RootListIndex RootIndexForExternalArrayType( |
| 1648 ExternalArrayType array_type); | 1658 ExternalArrayType array_type); |
| 1649 | 1659 |
| 1650 RootListIndex RootIndexForEmptyExternalArray(ElementsKind kind); | 1660 RootListIndex RootIndexForEmptyExternalArray(ElementsKind kind); |
| 1661 RootListIndex RootIndexForEmptyFixedTypedArray(ElementsKind kind); |
| 1651 ExternalArray* EmptyExternalArrayForMap(Map* map); | 1662 ExternalArray* EmptyExternalArrayForMap(Map* map); |
| 1663 FixedTypedArrayBase* EmptyFixedTypedArrayForMap(Map* map); |
| 1652 | 1664 |
| 1653 void RecordStats(HeapStats* stats, bool take_snapshot = false); | 1665 void RecordStats(HeapStats* stats, bool take_snapshot = false); |
| 1654 | 1666 |
| 1655 // Copy block of memory from src to dst. Size of block should be aligned | 1667 // Copy block of memory from src to dst. Size of block should be aligned |
| 1656 // by pointer size. | 1668 // by pointer size. |
| 1657 static inline void CopyBlock(Address dst, Address src, int byte_size); | 1669 static inline void CopyBlock(Address dst, Address src, int byte_size); |
| 1658 | 1670 |
| 1659 // Optimized version of memmove for blocks with pointer size aligned sizes and | 1671 // Optimized version of memmove for blocks with pointer size aligned sizes and |
| 1660 // pointer size aligned addresses. | 1672 // pointer size aligned addresses. |
| 1661 static inline void MoveBlock(Address dst, Address src, int byte_size); | 1673 static inline void MoveBlock(Address dst, Address src, int byte_size); |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 ElementsKind elements_kind, | 2223 ElementsKind elements_kind, |
| 2212 PretenureFlag pretenure = NOT_TENURED); | 2224 PretenureFlag pretenure = NOT_TENURED); |
| 2213 | 2225 |
| 2214 // Allocate empty fixed array. | 2226 // Allocate empty fixed array. |
| 2215 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); | 2227 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedArray(); |
| 2216 | 2228 |
| 2217 // Allocate empty external array of given type. | 2229 // Allocate empty external array of given type. |
| 2218 MUST_USE_RESULT MaybeObject* AllocateEmptyExternalArray( | 2230 MUST_USE_RESULT MaybeObject* AllocateEmptyExternalArray( |
| 2219 ExternalArrayType array_type); | 2231 ExternalArrayType array_type); |
| 2220 | 2232 |
| 2233 // Allocate empty fixed typed array of given type. |
| 2234 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedTypedArray( |
| 2235 ExternalArrayType array_type); |
| 2236 |
| 2221 // Allocate empty fixed double array. | 2237 // Allocate empty fixed double array. |
| 2222 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedDoubleArray(); | 2238 MUST_USE_RESULT MaybeObject* AllocateEmptyFixedDoubleArray(); |
| 2223 | 2239 |
| 2224 // Allocate empty constant pool array. | 2240 // Allocate empty constant pool array. |
| 2225 MUST_USE_RESULT MaybeObject* AllocateEmptyConstantPoolArray(); | 2241 MUST_USE_RESULT MaybeObject* AllocateEmptyConstantPoolArray(); |
| 2226 | 2242 |
| 2227 // Allocate a tenured simple cell. | 2243 // Allocate a tenured simple cell. |
| 2228 MUST_USE_RESULT MaybeObject* AllocateCell(Object* value); | 2244 MUST_USE_RESULT MaybeObject* AllocateCell(Object* value); |
| 2229 | 2245 |
| 2230 // Allocate a tenured JS global property cell initialized with the hole. | 2246 // Allocate a tenured JS global property cell initialized with the hole. |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3123 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3139 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3124 | 3140 |
| 3125 private: | 3141 private: |
| 3126 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3142 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3127 }; | 3143 }; |
| 3128 #endif // DEBUG | 3144 #endif // DEBUG |
| 3129 | 3145 |
| 3130 } } // namespace v8::internal | 3146 } } // namespace v8::internal |
| 3131 | 3147 |
| 3132 #endif // V8_HEAP_H_ | 3148 #endif // V8_HEAP_H_ |
| OLD | NEW |