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

Side by Side Diff: src/heap.h

Issue 9965054: Make progress in incremental marking if scavenge is delaying mark-sweep. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comment Created 8 years, 8 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 | « no previous file | 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 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 void QueueMemoryChunkForFree(MemoryChunk* chunk); 1562 void QueueMemoryChunkForFree(MemoryChunk* chunk);
1563 void FreeQueuedChunks(); 1563 void FreeQueuedChunks();
1564 1564
1565 // Completely clear the Instanceof cache (to stop it keeping objects alive 1565 // Completely clear the Instanceof cache (to stop it keeping objects alive
1566 // around a GC). 1566 // around a GC).
1567 inline void CompletelyClearInstanceofCache(); 1567 inline void CompletelyClearInstanceofCache();
1568 1568
1569 // The roots that have an index less than this are always in old space. 1569 // The roots that have an index less than this are always in old space.
1570 static const int kOldSpaceRoots = 0x20; 1570 static const int kOldSpaceRoots = 0x20;
1571 1571
1572 bool idle_notification_will_schedule_next_gc() {
1573 return idle_notification_will_schedule_next_gc_;
1574 }
1575
1576 uint32_t HashSeed() { 1572 uint32_t HashSeed() {
1577 uint32_t seed = static_cast<uint32_t>(hash_seed()->value()); 1573 uint32_t seed = static_cast<uint32_t>(hash_seed()->value());
1578 ASSERT(FLAG_randomize_hashes || seed == 0); 1574 ASSERT(FLAG_randomize_hashes || seed == 0);
1579 return seed; 1575 return seed;
1580 } 1576 }
1581 1577
1582 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) { 1578 void SetArgumentsAdaptorDeoptPCOffset(int pc_offset) {
1583 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0)); 1579 ASSERT(arguments_adaptor_deopt_pc_offset() == Smi::FromInt(0));
1584 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset)); 1580 set_arguments_adaptor_deopt_pc_offset(Smi::FromInt(pc_offset));
1585 } 1581 }
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 StoreBuffer store_buffer_; 2022 StoreBuffer store_buffer_;
2027 2023
2028 Marking marking_; 2024 Marking marking_;
2029 2025
2030 IncrementalMarking incremental_marking_; 2026 IncrementalMarking incremental_marking_;
2031 2027
2032 int number_idle_notifications_; 2028 int number_idle_notifications_;
2033 unsigned int last_idle_notification_gc_count_; 2029 unsigned int last_idle_notification_gc_count_;
2034 bool last_idle_notification_gc_count_init_; 2030 bool last_idle_notification_gc_count_init_;
2035 2031
2036 bool idle_notification_will_schedule_next_gc_;
2037 int mark_sweeps_since_idle_round_started_; 2032 int mark_sweeps_since_idle_round_started_;
2038 int ms_count_at_last_idle_notification_; 2033 int ms_count_at_last_idle_notification_;
2039 unsigned int gc_count_at_last_idle_gc_; 2034 unsigned int gc_count_at_last_idle_gc_;
2040 int scavenges_since_last_idle_round_; 2035 int scavenges_since_last_idle_round_;
2041 2036
2042 static const int kMaxMarkSweepsInIdleRound = 7; 2037 static const int kMaxMarkSweepsInIdleRound = 7;
2043 static const int kIdleScavengeThreshold = 5; 2038 static const int kIdleScavengeThreshold = 5;
2044 2039
2045 // Shared state read by the scavenge collector and set by ScavengeObject. 2040 // Shared state read by the scavenge collector and set by ScavengeObject.
2046 PromotionQueue promotion_queue_; 2041 PromotionQueue promotion_queue_;
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2706 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2712 2707
2713 private: 2708 private:
2714 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2709 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2715 }; 2710 };
2716 #endif // DEBUG || LIVE_OBJECT_LIST 2711 #endif // DEBUG || LIVE_OBJECT_LIST
2717 2712
2718 } } // namespace v8::internal 2713 } } // namespace v8::internal
2719 2714
2720 #endif // V8_HEAP_H_ 2715 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698