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

Side by Side Diff: src/heap.h

Issue 197473004: Pretenure code generation corner case with new space COW arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 6 years, 9 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/factory.cc ('k') | src/heap.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 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
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 2132 matching lines...) Expand 10 before | Expand all | Expand 10 after
3124 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3128 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3125 3129
3126 private: 3130 private:
3127 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3131 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3128 }; 3132 };
3129 #endif // DEBUG 3133 #endif // DEBUG
3130 3134
3131 } } // namespace v8::internal 3135 } } // namespace v8::internal
3132 3136
3133 #endif // V8_HEAP_H_ 3137 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698