| Index: runtime/vm/heap.h
|
| ===================================================================
|
| --- runtime/vm/heap.h (revision 40518)
|
| +++ runtime/vm/heap.h (working copy)
|
| @@ -33,6 +33,7 @@
|
| kNew,
|
| kOld,
|
| kCode,
|
| + // TODO(koda): Harmonize all old-space allocation and get rid of this.
|
| kPretenured,
|
| };
|
|
|
| @@ -145,10 +146,9 @@
|
| }
|
|
|
| // Accessors for inlined allocation in generated code.
|
| - uword TopAddress();
|
| - uword EndAddress();
|
| - static intptr_t new_space_offset() { return OFFSET_OF(Heap, new_space_); }
|
| - uword NewSpaceAddress() const { return reinterpret_cast<uword>(new_space_); }
|
| + uword TopAddress(Space space);
|
| + uword EndAddress(Space space);
|
| + Space SpaceForAllocation(intptr_t class_id) const;
|
|
|
| // Initialize the heap and register it with the isolate.
|
| static void Init(Isolate* isolate,
|
|
|