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

Side by Side Diff: src/heap.h

Issue 6715028: Preserve marking bits across scavenges if incremental marker is running. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: fix review comments, add more tracing Created 9 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 | « 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 } 1466 }
1467 1467
1468 static bool IsIncreasingSurvivalTrend() { 1468 static bool IsIncreasingSurvivalTrend() {
1469 return survival_rate_trend() == INCREASING; 1469 return survival_rate_trend() == INCREASING;
1470 } 1470 }
1471 1471
1472 static bool IsHighSurvivalRate() { 1472 static bool IsHighSurvivalRate() {
1473 return high_survival_rate_period_length_ > 0; 1473 return high_survival_rate_period_length_ > 0;
1474 } 1474 }
1475 1475
1476 static void SelectScavengingVisitorsTable();
1477
1476 static const int kInitialSymbolTableSize = 2048; 1478 static const int kInitialSymbolTableSize = 2048;
1477 static const int kInitialEvalCacheSize = 64; 1479 static const int kInitialEvalCacheSize = 64;
1478 1480
1479 friend class Factory; 1481 friend class Factory;
1480 friend class DisallowAllocationFailure; 1482 friend class DisallowAllocationFailure;
1481 friend class AlwaysAllocateScope; 1483 friend class AlwaysAllocateScope;
1482 friend class LinearAllocationScope; 1484 friend class LinearAllocationScope;
1483 friend class MarkCompactCollector; 1485 friend class MarkCompactCollector;
1484 }; 1486 };
1485 1487
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 } 1786 }
1785 } 1787 }
1786 1788
1787 HeapObject* Pop() { 1789 HeapObject* Pop() {
1788 ASSERT(!is_empty()); 1790 ASSERT(!is_empty());
1789 HeapObject* object = *(--top_); 1791 HeapObject* object = *(--top_);
1790 ASSERT(object->IsHeapObject()); 1792 ASSERT(object->IsHeapObject());
1791 return object; 1793 return object;
1792 } 1794 }
1793 1795
1796 HeapObject** low() { return low_; }
1797 HeapObject** top() { return top_; }
1798 void set_top(HeapObject** top) { top_ = top; }
1799
1794 private: 1800 private:
1795 HeapObject** low_; 1801 HeapObject** low_;
1796 HeapObject** top_; 1802 HeapObject** top_;
1797 HeapObject** high_; 1803 HeapObject** high_;
1798 bool overflowed_; 1804 bool overflowed_;
1799 }; 1805 };
1800 1806
1801 1807
1802 // A helper class to document/test C++ scopes where we do not 1808 // A helper class to document/test C++ scopes where we do not
1803 // expect a GC. Usage: 1809 // expect a GC. Usage:
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
2239 2245
2240 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2246 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2241 2247
2242 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2248 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2243 }; 2249 };
2244 #endif // DEBUG || LIVE_OBJECT_LIST 2250 #endif // DEBUG || LIVE_OBJECT_LIST
2245 2251
2246 } } // namespace v8::internal 2252 } } // namespace v8::internal
2247 2253
2248 #endif // V8_HEAP_H_ 2254 #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