Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: runtime/vm/heap.h

Issue 578443003: Support old-space allocation in generated code (bump block only for now). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/stub_code_x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698