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

Side by Side Diff: src/heap/heap.h

Issue 2551973005: [heap] Clear cached wrappers upon aborting incremental marking (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | src/heap/mark-compact.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 1217
1218 void RegisterWrappersWithEmbedderHeapTracer(); 1218 void RegisterWrappersWithEmbedderHeapTracer();
1219 1219
1220 // In order to avoid running out of memory we force tracing wrappers if there 1220 // In order to avoid running out of memory we force tracing wrappers if there
1221 // are too many of them. 1221 // are too many of them.
1222 bool RequiresImmediateWrapperProcessing(); 1222 bool RequiresImmediateWrapperProcessing();
1223 1223
1224 EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; } 1224 EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; }
1225 1225
1226 size_t wrappers_to_trace() { return wrappers_to_trace_.size(); } 1226 size_t wrappers_to_trace() { return wrappers_to_trace_.size(); }
1227 void clear_wrappers_to_trace() { wrappers_to_trace_.clear(); }
1227 1228
1228 // =========================================================================== 1229 // ===========================================================================
1229 // External string table API. ================================================ 1230 // External string table API. ================================================
1230 // =========================================================================== 1231 // ===========================================================================
1231 1232
1232 // Registers an external string. 1233 // Registers an external string.
1233 inline void RegisterExternalString(String* string); 1234 inline void RegisterExternalString(String* string);
1234 1235
1235 // Finalizes an external string by deleting the associated external 1236 // Finalizes an external string by deleting the associated external
1236 // data and clearing the resource pointer. 1237 // data and clearing the resource pointer.
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
2647 friend class LargeObjectSpace; 2648 friend class LargeObjectSpace;
2648 friend class NewSpace; 2649 friend class NewSpace;
2649 friend class PagedSpace; 2650 friend class PagedSpace;
2650 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2651 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2651 }; 2652 };
2652 2653
2653 } // namespace internal 2654 } // namespace internal
2654 } // namespace v8 2655 } // namespace v8
2655 2656
2656 #endif // V8_HEAP_HEAP_H_ 2657 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698