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

Side by Side Diff: src/heap.h

Issue 11737006: Filter old to new references when moving parts of an object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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/builtins.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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 // Allocates a fixed array initialized with undefined values 798 // Allocates a fixed array initialized with undefined values
799 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length); 799 MUST_USE_RESULT MaybeObject* AllocateFixedArray(int length);
800 800
801 // Allocates an uninitialized fixed array. It must be filled by the caller. 801 // Allocates an uninitialized fixed array. It must be filled by the caller.
802 // 802 //
803 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 803 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
804 // failed. 804 // failed.
805 // Please note this does not perform a garbage collection. 805 // Please note this does not perform a garbage collection.
806 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length); 806 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedArray(int length);
807 807
808 // Move len elements within a given array from src_index index to dst_index
809 // index.
810 void MoveElements(FixedArray* array, int dst_index, int src_index, int len);
811
808 // Make a copy of src and return it. Returns 812 // Make a copy of src and return it. Returns
809 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 813 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
810 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src); 814 MUST_USE_RESULT inline MaybeObject* CopyFixedArray(FixedArray* src);
811 815
812 // Make a copy of src, set the map, and return the copy. Returns 816 // Make a copy of src, set the map, and return the copy. Returns
813 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 817 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
814 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map); 818 MUST_USE_RESULT MaybeObject* CopyFixedArrayWithMap(FixedArray* src, Map* map);
815 819
816 // Make a copy of src and return it. Returns 820 // Make a copy of src and return it. Returns
817 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 821 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after
2841 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2845 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2842 2846
2843 private: 2847 private:
2844 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2848 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2845 }; 2849 };
2846 #endif // DEBUG || LIVE_OBJECT_LIST 2850 #endif // DEBUG || LIVE_OBJECT_LIST
2847 2851
2848 } } // namespace v8::internal 2852 } } // namespace v8::internal
2849 2853
2850 #endif // V8_HEAP_H_ 2854 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698