| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_SPACES_H_ | 5 #ifndef V8_HEAP_SPACES_H_ | 
| 6 #define V8_HEAP_SPACES_H_ | 6 #define V8_HEAP_SPACES_H_ | 
| 7 | 7 | 
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" | 
| 9 #include "src/atomic-utils.h" | 9 #include "src/atomic-utils.h" | 
| 10 #include "src/base/atomicops.h" | 10 #include "src/base/atomicops.h" | 
| (...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2478 #else | 2478 #else | 
| 2479   // Do nothing. | 2479   // Do nothing. | 
| 2480   inline static void AssertValidRange(Address from, Address to) {} | 2480   inline static void AssertValidRange(Address from, Address to) {} | 
| 2481 #endif | 2481 #endif | 
| 2482 | 2482 | 
| 2483 #ifdef VERIFY_HEAP | 2483 #ifdef VERIFY_HEAP | 
| 2484   virtual void Verify(); | 2484   virtual void Verify(); | 
| 2485 #endif | 2485 #endif | 
| 2486 | 2486 | 
| 2487  private: | 2487  private: | 
|  | 2488   void RewindPages(NewSpacePage* start, int num_pages); | 
|  | 2489 | 
| 2488   inline NewSpacePage* anchor() { return &anchor_; } | 2490   inline NewSpacePage* anchor() { return &anchor_; } | 
| 2489 | 2491 | 
| 2490   // Copies the flags into the masked positions on all pages in the space. | 2492   // Copies the flags into the masked positions on all pages in the space. | 
| 2491   void FixPagesFlags(intptr_t flags, intptr_t flag_mask); | 2493   void FixPagesFlags(intptr_t flags, intptr_t flag_mask); | 
| 2492 | 2494 | 
| 2493   // The currently committed space capacity. | 2495   // The currently committed space capacity. | 
| 2494   int current_capacity_; | 2496   int current_capacity_; | 
| 2495 | 2497 | 
| 2496   // The maximum capacity that can be used by this space. | 2498   // The maximum capacity that can be used by this space. | 
| 2497   int maximum_capacity_; | 2499   int maximum_capacity_; | 
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3113     count = 0; | 3115     count = 0; | 
| 3114   } | 3116   } | 
| 3115   // Must be small, since an iteration is used for lookup. | 3117   // Must be small, since an iteration is used for lookup. | 
| 3116   static const int kMaxComments = 64; | 3118   static const int kMaxComments = 64; | 
| 3117 }; | 3119 }; | 
| 3118 #endif | 3120 #endif | 
| 3119 }  // namespace internal | 3121 }  // namespace internal | 
| 3120 }  // namespace v8 | 3122 }  // namespace v8 | 
| 3121 | 3123 | 
| 3122 #endif  // V8_HEAP_SPACES_H_ | 3124 #endif  // V8_HEAP_SPACES_H_ | 
| OLD | NEW | 
|---|