| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ | 64 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
| 65 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ | 65 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ |
| 66 V(Map, meta_map, MetaMap) \ | 66 V(Map, meta_map, MetaMap) \ |
| 67 V(Map, heap_number_map, HeapNumberMap) \ | 67 V(Map, heap_number_map, HeapNumberMap) \ |
| 68 V(Map, native_context_map, NativeContextMap) \ | 68 V(Map, native_context_map, NativeContextMap) \ |
| 69 V(Map, fixed_array_map, FixedArrayMap) \ | 69 V(Map, fixed_array_map, FixedArrayMap) \ |
| 70 V(Map, code_map, CodeMap) \ | 70 V(Map, code_map, CodeMap) \ |
| 71 V(Map, scope_info_map, ScopeInfoMap) \ | 71 V(Map, scope_info_map, ScopeInfoMap) \ |
| 72 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ | 72 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ |
| 73 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ | 73 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ |
| 74 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \ |
| 74 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ | 75 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ |
| 75 V(Map, hash_table_map, HashTableMap) \ | 76 V(Map, hash_table_map, HashTableMap) \ |
| 76 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ | 77 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
| 77 V(ByteArray, empty_byte_array, EmptyByteArray) \ | 78 V(ByteArray, empty_byte_array, EmptyByteArray) \ |
| 78 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ | 79 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ |
| 79 V(Smi, stack_limit, StackLimit) \ | 80 V(Smi, stack_limit, StackLimit) \ |
| 80 V(Oddball, arguments_marker, ArgumentsMarker) \ | 81 V(Oddball, arguments_marker, ArgumentsMarker) \ |
| 81 /* The roots above this line should be boring from a GC point of view. */ \ | 82 /* The roots above this line should be boring from a GC point of view. */ \ |
| 82 /* This means they are never in new space and never on a page that is */ \ | 83 /* This means they are never in new space and never on a page that is */ \ |
| 83 /* being compacted. */ \ | 84 /* being compacted. */ \ |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 // Make a copy of src and return it. Returns | 937 // Make a copy of src and return it. Returns |
| 937 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 938 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 938 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray( | 939 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray( |
| 939 FixedDoubleArray* src); | 940 FixedDoubleArray* src); |
| 940 | 941 |
| 941 // Make a copy of src, set the map, and return the copy. Returns | 942 // Make a copy of src, set the map, and return the copy. Returns |
| 942 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 943 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 943 MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap( | 944 MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap( |
| 944 FixedDoubleArray* src, Map* map); | 945 FixedDoubleArray* src, Map* map); |
| 945 | 946 |
| 947 // Make a copy of src and return it. Returns |
| 948 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 949 MUST_USE_RESULT inline MaybeObject* CopyConstantPoolArray( |
| 950 ConstantPoolArray* src); |
| 951 |
| 952 // Make a copy of src, set the map, and return the copy. Returns |
| 953 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 954 MUST_USE_RESULT MaybeObject* CopyConstantPoolArrayWithMap( |
| 955 ConstantPoolArray* src, Map* map); |
| 956 |
| 946 // Allocates a fixed array initialized with the hole values. | 957 // Allocates a fixed array initialized with the hole values. |
| 947 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 958 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 948 // failed. | 959 // failed. |
| 949 // Please note this does not perform a garbage collection. | 960 // Please note this does not perform a garbage collection. |
| 950 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles( | 961 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles( |
| 951 int length, | 962 int length, |
| 952 PretenureFlag pretenure = NOT_TENURED); | 963 PretenureFlag pretenure = NOT_TENURED); |
| 953 | 964 |
| 954 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray( | 965 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray( |
| 955 int length, | 966 int length, |
| 956 PretenureFlag pretenure); | 967 PretenureFlag pretenure); |
| 957 | 968 |
| 969 MUST_USE_RESULT MaybeObject* AllocateConstantPoolArray( |
| 970 int first_int64_index, |
| 971 int first_ptr_index, |
| 972 int first_int32_index); |
| 973 |
| 958 // Allocates a fixed double array with uninitialized values. Returns | 974 // Allocates a fixed double array with uninitialized values. Returns |
| 959 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 975 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 960 // Please note this does not perform a garbage collection. | 976 // Please note this does not perform a garbage collection. |
| 961 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedDoubleArray( | 977 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedDoubleArray( |
| 962 int length, | 978 int length, |
| 963 PretenureFlag pretenure = NOT_TENURED); | 979 PretenureFlag pretenure = NOT_TENURED); |
| 964 | 980 |
| 965 // Allocates a fixed double array with hole values. Returns | 981 // Allocates a fixed double array with hole values. Returns |
| 966 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 982 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 967 // Please note this does not perform a garbage collection. | 983 // Please note this does not perform a garbage collection. |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3027 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3043 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3028 | 3044 |
| 3029 private: | 3045 private: |
| 3030 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3046 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3031 }; | 3047 }; |
| 3032 #endif // DEBUG | 3048 #endif // DEBUG |
| 3033 | 3049 |
| 3034 } } // namespace v8::internal | 3050 } } // namespace v8::internal |
| 3035 | 3051 |
| 3036 #endif // V8_HEAP_H_ | 3052 #endif // V8_HEAP_H_ |
| OLD | NEW |