| 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/base/atomicops.h" | 9 #include "src/base/atomicops.h" | 
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" | 
| (...skipping 2516 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2527   MUST_USE_RESULT INLINE(AllocationResult AllocateRaw( | 2527   MUST_USE_RESULT INLINE(AllocationResult AllocateRaw( | 
| 2528       int size_in_bytes, AllocationAlignment alignment)); | 2528       int size_in_bytes, AllocationAlignment alignment)); | 
| 2529 | 2529 | 
| 2530   // Reset the allocation pointer to the beginning of the active semispace. | 2530   // Reset the allocation pointer to the beginning of the active semispace. | 
| 2531   void ResetAllocationInfo(); | 2531   void ResetAllocationInfo(); | 
| 2532 | 2532 | 
| 2533   void UpdateInlineAllocationLimit(int size_in_bytes); | 2533   void UpdateInlineAllocationLimit(int size_in_bytes); | 
| 2534   void LowerInlineAllocationLimit(intptr_t step) { | 2534   void LowerInlineAllocationLimit(intptr_t step) { | 
| 2535     inline_allocation_limit_step_ = step; | 2535     inline_allocation_limit_step_ = step; | 
| 2536     UpdateInlineAllocationLimit(0); | 2536     UpdateInlineAllocationLimit(0); | 
| 2537     top_on_previous_step_ = allocation_info_.top(); | 2537     top_on_previous_step_ = step ? allocation_info_.top() : 0; | 
| 2538   } | 2538   } | 
| 2539 | 2539 | 
| 2540   // Get the extent of the inactive semispace (for use as a marking stack, | 2540   // Get the extent of the inactive semispace (for use as a marking stack, | 
| 2541   // or to zap it). Notice: space-addresses are not necessarily on the | 2541   // or to zap it). Notice: space-addresses are not necessarily on the | 
| 2542   // same page, so FromSpaceStart() might be above FromSpaceEnd(). | 2542   // same page, so FromSpaceStart() might be above FromSpaceEnd(). | 
| 2543   Address FromSpacePageLow() { return from_space_.page_low(); } | 2543   Address FromSpacePageLow() { return from_space_.page_low(); } | 
| 2544   Address FromSpacePageHigh() { return from_space_.page_high(); } | 2544   Address FromSpacePageHigh() { return from_space_.page_high(); } | 
| 2545   Address FromSpaceStart() { return from_space_.space_start(); } | 2545   Address FromSpaceStart() { return from_space_.space_start(); } | 
| 2546   Address FromSpaceEnd() { return from_space_.space_end(); } | 2546   Address FromSpaceEnd() { return from_space_.space_end(); } | 
| 2547 | 2547 | 
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2885     count = 0; | 2885     count = 0; | 
| 2886   } | 2886   } | 
| 2887   // Must be small, since an iteration is used for lookup. | 2887   // Must be small, since an iteration is used for lookup. | 
| 2888   static const int kMaxComments = 64; | 2888   static const int kMaxComments = 64; | 
| 2889 }; | 2889 }; | 
| 2890 #endif | 2890 #endif | 
| 2891 } | 2891 } | 
| 2892 }  // namespace v8::internal | 2892 }  // namespace v8::internal | 
| 2893 | 2893 | 
| 2894 #endif  // V8_HEAP_SPACES_H_ | 2894 #endif  // V8_HEAP_SPACES_H_ | 
| OLD | NEW | 
|---|