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

Side by Side Diff: src/heap.h

Issue 207613004: Do not left-trim arrays when concurrent sweeping is active. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 // failed. 1164 // failed.
1165 // Please note this function does not perform a garbage collection. 1165 // Please note this function does not perform a garbage collection.
1166 MUST_USE_RESULT inline MaybeObject* AllocateRaw(int size_in_bytes, 1166 MUST_USE_RESULT inline MaybeObject* AllocateRaw(int size_in_bytes,
1167 AllocationSpace space, 1167 AllocationSpace space,
1168 AllocationSpace retry_space); 1168 AllocationSpace retry_space);
1169 1169
1170 // Initialize a filler object to keep the ability to iterate over the heap 1170 // Initialize a filler object to keep the ability to iterate over the heap
1171 // when shortening objects. 1171 // when shortening objects.
1172 void CreateFillerObjectAt(Address addr, int size); 1172 void CreateFillerObjectAt(Address addr, int size);
1173 1173
1174 bool CanMoveObjectStart(HeapObject* object);
1175
1174 enum InvocationMode { FROM_GC, FROM_MUTATOR }; 1176 enum InvocationMode { FROM_GC, FROM_MUTATOR };
1175 1177
1176 // Maintain marking consistency for IncrementalMarking. 1178 // Maintain marking consistency for IncrementalMarking.
1177 void AdjustLiveBytes(Address address, int by, InvocationMode mode); 1179 void AdjustLiveBytes(Address address, int by, InvocationMode mode);
1178 1180
1179 // Makes a new native code object 1181 // Makes a new native code object
1180 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 1182 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1181 // failed. On success, the pointer to the Code object is stored in the 1183 // failed. On success, the pointer to the Code object is stored in the
1182 // self_reference. This allows generated code to reference its own Code 1184 // self_reference. This allows generated code to reference its own Code
1183 // object by containing this pointer. 1185 // object by containing this pointer.
(...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3124 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3123 3125
3124 private: 3126 private:
3125 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3127 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3126 }; 3128 };
3127 #endif // DEBUG 3129 #endif // DEBUG
3128 3130
3129 } } // namespace v8::internal 3131 } } // namespace v8::internal
3130 3132
3131 #endif // V8_HEAP_H_ 3133 #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