Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 912 return lo_space(); | 912 return lo_space(); |
| 913 default: | 913 default: |
| 914 return paged_space(idx); | 914 return paged_space(idx); |
| 915 } | 915 } |
| 916 } | 916 } |
| 917 | 917 |
| 918 // Returns name of the space. | 918 // Returns name of the space. |
| 919 const char* GetSpaceName(int idx); | 919 const char* GetSpaceName(int idx); |
| 920 | 920 |
| 921 // =========================================================================== | 921 // =========================================================================== |
| 922 // API. ====================================================================== | |
| 923 // =========================================================================== | |
| 924 | |
| 925 void SetEmbedderHeapTracer(EmbedderHeapTracer* tracer); | |
| 926 | |
| 927 void RegisterExternallyReferencedObject(Object** object); | |
| 928 | |
| 929 // =========================================================================== | |
| 922 // Getters to other components. ============================================== | 930 // Getters to other components. ============================================== |
| 923 // =========================================================================== | 931 // =========================================================================== |
| 924 | 932 |
| 925 GCTracer* tracer() { return tracer_; } | 933 GCTracer* tracer() { return tracer_; } |
| 926 | 934 |
| 935 EmbedderHeapTracer* embedder_heap_tracer() { return embedder_heap_tracer_; } | |
|
Hannes Payer (out of office)
2016/03/31 12:31:38
Move this one to the API section. Can you add othe
| |
| 936 | |
| 927 PromotionQueue* promotion_queue() { return &promotion_queue_; } | 937 PromotionQueue* promotion_queue() { return &promotion_queue_; } |
| 928 | 938 |
| 929 inline Isolate* isolate(); | 939 inline Isolate* isolate(); |
| 930 | 940 |
| 931 MarkCompactCollector* mark_compact_collector() { | 941 MarkCompactCollector* mark_compact_collector() { |
| 932 return mark_compact_collector_; | 942 return mark_compact_collector_; |
| 933 } | 943 } |
| 934 | 944 |
| 935 // =========================================================================== | 945 // =========================================================================== |
| 936 // Root set access. ========================================================== | 946 // Root set access. ========================================================== |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2095 | 2105 |
| 2096 List<GCCallbackPair> gc_epilogue_callbacks_; | 2106 List<GCCallbackPair> gc_epilogue_callbacks_; |
| 2097 List<GCCallbackPair> gc_prologue_callbacks_; | 2107 List<GCCallbackPair> gc_prologue_callbacks_; |
| 2098 | 2108 |
| 2099 // Total RegExp code ever generated | 2109 // Total RegExp code ever generated |
| 2100 double total_regexp_code_generated_; | 2110 double total_regexp_code_generated_; |
| 2101 | 2111 |
| 2102 int deferred_counters_[v8::Isolate::kUseCounterFeatureCount]; | 2112 int deferred_counters_[v8::Isolate::kUseCounterFeatureCount]; |
| 2103 | 2113 |
| 2104 GCTracer* tracer_; | 2114 GCTracer* tracer_; |
| 2115 EmbedderHeapTracer* embedder_heap_tracer_; | |
| 2105 | 2116 |
| 2106 int high_survival_rate_period_length_; | 2117 int high_survival_rate_period_length_; |
| 2107 intptr_t promoted_objects_size_; | 2118 intptr_t promoted_objects_size_; |
| 2108 double promotion_ratio_; | 2119 double promotion_ratio_; |
| 2109 double promotion_rate_; | 2120 double promotion_rate_; |
| 2110 intptr_t semi_space_copied_object_size_; | 2121 intptr_t semi_space_copied_object_size_; |
| 2111 intptr_t previous_semi_space_copied_object_size_; | 2122 intptr_t previous_semi_space_copied_object_size_; |
| 2112 double semi_space_copied_rate_; | 2123 double semi_space_copied_rate_; |
| 2113 int nodes_died_in_new_space_; | 2124 int nodes_died_in_new_space_; |
| 2114 int nodes_copied_in_new_space_; | 2125 int nodes_copied_in_new_space_; |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2654 friend class LargeObjectSpace; | 2665 friend class LargeObjectSpace; |
| 2655 friend class NewSpace; | 2666 friend class NewSpace; |
| 2656 friend class PagedSpace; | 2667 friend class PagedSpace; |
| 2657 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2668 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2658 }; | 2669 }; |
| 2659 | 2670 |
| 2660 } // namespace internal | 2671 } // namespace internal |
| 2661 } // namespace v8 | 2672 } // namespace v8 |
| 2662 | 2673 |
| 2663 #endif // V8_HEAP_HEAP_H_ | 2674 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |