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

Unified Diff: runtime/vm/object.h

Issue 2821233005: Allow signature functions to be allocated in new space. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | 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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 4251e1ef59dc6155be6824631bb1edab2af2b6a0..5b78e07361aa7d4ae31d1998bc8b4a7976d906e7 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2822,7 +2822,8 @@ class Function : public Object {
bool is_external,
bool is_native,
const Object& owner,
- TokenPosition token_pos);
+ TokenPosition token_pos,
+ Heap::Space space = Heap::kOld);
// Allocates a new Function object representing a closure function.
static RawFunction* NewClosureFunction(const String& name,
@@ -2832,7 +2833,8 @@ class Function : public Object {
// Allocates a new Function object representing a signature function.
// The owner is the scope class of the function type.
static RawFunction* NewSignatureFunction(const Object& owner,
- TokenPosition token_pos);
+ TokenPosition token_pos,
+ Heap::Space space = Heap::kOld);
static RawFunction* NewEvalFunction(const Class& owner,
const Script& script,
@@ -2997,7 +2999,7 @@ class Function : public Object {
void set_kind_tag(uint32_t value) const;
void set_data(const Object& value) const;
- static RawFunction* New();
+ static RawFunction* New(Heap::Space space = Heap::kOld);
RawString* QualifiedName(NameVisibility name_visibility) const;
@@ -3077,7 +3079,7 @@ class SignatureData : public Object {
RawType* signature_type() const { return raw_ptr()->signature_type_; }
void set_signature_type(const Type& value) const;
- static RawSignatureData* New();
+ static RawSignatureData* New(Heap::Space space = Heap::kOld);
FINAL_HEAP_OBJECT_IMPLEMENTATION(SignatureData, Object);
friend class Class;
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698