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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length); | 972 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length); |
973 | 973 |
974 // Move len elements within a given array from src_index index to dst_index | 974 // Move len elements within a given array from src_index index to dst_index |
975 // index. | 975 // index. |
976 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); | 976 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); |
977 | 977 |
978 // Make a copy of src and return it. Returns | 978 // Make a copy of src and return it. Returns |
979 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 979 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
980 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src); | 980 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src); |
981 | 981 |
| 982 // Make a copy of src and return it. Returns |
| 983 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| 984 MUST_USE_RESULT MaybeObject* CopyAndTenureFixedCOWArray(FixedArray* src); |
| 985 |
982 // Make a copy of src, set the map, and return the copy. Returns | 986 // Make a copy of src, set the map, and return the copy. Returns |
983 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 987 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
984 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map); | 988 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map); |
985 | 989 |
986 // Make a copy of src and return it. Returns | 990 // Make a copy of src and return it. Returns |
987 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. | 991 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
988 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray( | 992 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray( |
989 FixedDoubleArray* src); | 993 FixedDoubleArray* src); |
990 | 994 |
991 // Make a copy of src, set the map, and return the copy. Returns | 995 // Make a copy of src, set the map, and return the copy. Returns |
(...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3123 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3127 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3124 | 3128 |
3125 private: | 3129 private: |
3126 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3130 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3127 }; | 3131 }; |
3128 #endif // DEBUG | 3132 #endif // DEBUG |
3129 | 3133 |
3130 } } // namespace v8::internal | 3134 } } // namespace v8::internal |
3131 | 3135 |
3132 #endif // V8_HEAP_H_ | 3136 #endif // V8_HEAP_H_ |
OLD | NEW |