OLD | NEW |
---|---|
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 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1653 GCTracer* tracer() { return tracer_; } | 1653 GCTracer* tracer() { return tracer_; } |
1654 | 1654 |
1655 // Returns the size of objects residing in non new spaces. | 1655 // Returns the size of objects residing in non new spaces. |
1656 intptr_t PromotedSpaceSizeOfObjects(); | 1656 intptr_t PromotedSpaceSizeOfObjects(); |
1657 | 1657 |
1658 double total_regexp_code_generated() { return total_regexp_code_generated_; } | 1658 double total_regexp_code_generated() { return total_regexp_code_generated_; } |
1659 void IncreaseTotalRegexpCodeGenerated(int size) { | 1659 void IncreaseTotalRegexpCodeGenerated(int size) { |
1660 total_regexp_code_generated_ += size; | 1660 total_regexp_code_generated_ += size; |
1661 } | 1661 } |
1662 | 1662 |
1663 void IncrementCodeGeneratedBytes(bool is_crankshafted, int size) { | |
1664 if (is_crankshafted) { | |
1665 crankshaft_codegen_bytes_generated_ += size; | |
1666 } else { | |
1667 full_codegen_bytes_generated_ += size; | |
1668 } | |
1669 } | |
1670 | |
1663 // Returns maximum GC pause. | 1671 // Returns maximum GC pause. |
1664 double get_max_gc_pause() { return max_gc_pause_; } | 1672 double get_max_gc_pause() { return max_gc_pause_; } |
1665 | 1673 |
1666 // Returns maximum size of objects alive after GC. | 1674 // Returns maximum size of objects alive after GC. |
1667 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; } | 1675 intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; } |
1668 | 1676 |
1669 // Returns minimal interval between two subsequent collections. | 1677 // Returns minimal interval between two subsequent collections. |
1670 double get_min_in_mutator() { return min_in_mutator_; } | 1678 double get_min_in_mutator() { return min_in_mutator_; } |
1671 | 1679 |
1672 // TODO(hpayer): remove, should be handled by GCTracer | 1680 // TODO(hpayer): remove, should be handled by GCTracer |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2348 IncrementalMarking incremental_marking_; | 2356 IncrementalMarking incremental_marking_; |
2349 | 2357 |
2350 int number_idle_notifications_; | 2358 int number_idle_notifications_; |
2351 unsigned int last_idle_notification_gc_count_; | 2359 unsigned int last_idle_notification_gc_count_; |
2352 bool last_idle_notification_gc_count_init_; | 2360 bool last_idle_notification_gc_count_init_; |
2353 | 2361 |
2354 int mark_sweeps_since_idle_round_started_; | 2362 int mark_sweeps_since_idle_round_started_; |
2355 unsigned int gc_count_at_last_idle_gc_; | 2363 unsigned int gc_count_at_last_idle_gc_; |
2356 int scavenges_since_last_idle_round_; | 2364 int scavenges_since_last_idle_round_; |
2357 | 2365 |
2366 size_t full_codegen_bytes_generated_; | |
Michael Starzinger
2013/10/14 13:12:57
Let's add a short one-liner comment here saying th
rmcilroy
2013/10/14 13:29:53
Done.
| |
2367 size_t crankshaft_codegen_bytes_generated_; | |
2368 | |
2358 // If the --deopt_every_n_garbage_collections flag is set to a positive value, | 2369 // If the --deopt_every_n_garbage_collections flag is set to a positive value, |
2359 // this variable holds the number of garbage collections since the last | 2370 // this variable holds the number of garbage collections since the last |
2360 // deoptimization triggered by garbage collection. | 2371 // deoptimization triggered by garbage collection. |
2361 int gcs_since_last_deopt_; | 2372 int gcs_since_last_deopt_; |
2362 | 2373 |
2363 #ifdef VERIFY_HEAP | 2374 #ifdef VERIFY_HEAP |
2364 int no_weak_object_verification_scope_depth_; | 2375 int no_weak_object_verification_scope_depth_; |
2365 #endif | 2376 #endif |
2366 | 2377 |
2367 static const int kMaxMarkSweepsInIdleRound = 7; | 2378 static const int kMaxMarkSweepsInIdleRound = 7; |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3060 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3071 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3061 | 3072 |
3062 private: | 3073 private: |
3063 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3074 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3064 }; | 3075 }; |
3065 #endif // DEBUG | 3076 #endif // DEBUG |
3066 | 3077 |
3067 } } // namespace v8::internal | 3078 } } // namespace v8::internal |
3068 | 3079 |
3069 #endif // V8_HEAP_H_ | 3080 #endif // V8_HEAP_H_ |
OLD | NEW |