OLD | NEW |
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 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1746 | 1746 |
1747 #ifdef DEBUG | 1747 #ifdef DEBUG |
1748 // Print meta info and objects in this space. | 1748 // Print meta info and objects in this space. |
1749 virtual void Print(); | 1749 virtual void Print(); |
1750 | 1750 |
1751 // Reports statistics for the space | 1751 // Reports statistics for the space |
1752 void ReportStatistics(); | 1752 void ReportStatistics(); |
1753 | 1753 |
1754 // Report code object related statistics | 1754 // Report code object related statistics |
1755 void CollectCodeStatistics(); | 1755 void CollectCodeStatistics(); |
1756 static void ReportCodeStatistics(); | 1756 static void ReportCodeStatistics(Isolate* isolate); |
1757 static void ResetCodeStatistics(); | 1757 static void ResetCodeStatistics(Isolate* isolate); |
1758 #endif | 1758 #endif |
1759 | 1759 |
1760 bool was_swept_conservatively() { return was_swept_conservatively_; } | 1760 bool was_swept_conservatively() { return was_swept_conservatively_; } |
1761 void set_was_swept_conservatively(bool b) { was_swept_conservatively_ = b; } | 1761 void set_was_swept_conservatively(bool b) { was_swept_conservatively_ = b; } |
1762 | 1762 |
1763 // Evacuation candidates are swept by evacuator. Needs to return a valid | 1763 // Evacuation candidates are swept by evacuator. Needs to return a valid |
1764 // result before _and_ after evacuation has finished. | 1764 // result before _and_ after evacuation has finished. |
1765 static bool ShouldBeSweptLazily(Page* p) { | 1765 static bool ShouldBeSweptLazily(Page* p) { |
1766 return !p->IsEvacuationCandidate() && | 1766 return !p->IsEvacuationCandidate() && |
1767 !p->IsFlagSet(Page::RESCAN_ON_EVACUATION) && | 1767 !p->IsFlagSet(Page::RESCAN_ON_EVACUATION) && |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2874 } | 2874 } |
2875 // Must be small, since an iteration is used for lookup. | 2875 // Must be small, since an iteration is used for lookup. |
2876 static const int kMaxComments = 64; | 2876 static const int kMaxComments = 64; |
2877 }; | 2877 }; |
2878 #endif | 2878 #endif |
2879 | 2879 |
2880 | 2880 |
2881 } } // namespace v8::internal | 2881 } } // namespace v8::internal |
2882 | 2882 |
2883 #endif // V8_SPACES_H_ | 2883 #endif // V8_SPACES_H_ |
OLD | NEW |