Index: runtime/vm/heap.h |
=================================================================== |
--- runtime/vm/heap.h (revision 39381) |
+++ runtime/vm/heap.h (working copy) |
@@ -62,6 +62,9 @@ |
~Heap(); |
+ Scavenger* new_space() { return new_space_; } |
+ PageSpace* old_space() { return old_space_; } |
siva
2014/08/20 17:21:22
const functions ?
Ivan Posva
2014/08/20 18:35:20
Done.
|
+ |
uword Allocate(intptr_t size, Space space) { |
ASSERT(!read_only_); |
switch (space) { |
@@ -81,28 +84,6 @@ |
return 0; |
} |
- uword TryAllocate( |
- intptr_t size, |
- Space space, |
- PageSpace::GrowthPolicy growth_policy = PageSpace::kControlGrowth) { |
- ASSERT(!read_only_); |
- switch (space) { |
- case kNew: |
- return new_space_->TryAllocate(size); |
- case kOld: |
- return old_space_->TryAllocate(size, |
- HeapPage::kData, |
- growth_policy); |
- case kCode: |
- return old_space_->TryAllocate(size, |
- HeapPage::kExecutable, |
- growth_policy); |
- default: |
- UNREACHABLE(); |
- } |
- return 0; |
- } |
- |
// Track external data. |
void AllocateExternal(intptr_t size, Space space); |
void FreeExternal(intptr_t size, Space space); |