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

Unified Diff: runtime/vm/object.h

Issue 10696155: Allocate types in proper heap space. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 9528)
+++ runtime/vm/object.h (working copy)
@@ -1010,13 +1010,14 @@
static RawType* New(const Object& clazz,
const AbstractTypeArguments& arguments,
- intptr_t token_pos);
+ intptr_t token_pos,
+ Heap::Space space = Heap::kOld);
private:
void set_token_pos(intptr_t token_pos) const;
void set_type_state(int8_t state) const;
- static RawType* New();
+ static RawType* New(Heap::Space space = Heap::kOld);
HEAP_OBJECT_IMPLEMENTATION(Type, AbstractType);
friend class Class;
@@ -1214,7 +1215,7 @@
return RoundedAllocationSize(sizeof(RawTypeArguments) + (len * kWordSize));
}
- static RawTypeArguments* New(intptr_t len);
+ static RawTypeArguments* New(intptr_t len, Heap::Space space = Heap::kOld);
private:
// Make sure that the array size cannot wrap around.
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698