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

Unified Diff: runtime/vm/object.h

Issue 23441073: Implement closurization of regular methods in ObjectMirror.getField in the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 7 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
« 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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 2f9702bba81fe090dc55cb5957b84e0059c99e30..2c18c69863f752bb40f7a4c3ab289fcf8f1b7067 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1468,9 +1468,6 @@ class Function : public Object {
RawClass* signature_class() const;
void set_signature_class(const Class& value) const;
- RawInstance* implicit_static_closure() const;
- void set_implicit_static_closure(const Instance& closure) const;
-
RawCode* closure_allocation_stub() const;
void set_closure_allocation_stub(const Code& value) const;
@@ -1502,6 +1499,10 @@ class Function : public Object {
// If none exists yet, create one and remember it.
RawFunction* ImplicitClosureFunction() const;
+ // Return the closure implicitly created for this function.
+ // If none exists yet, create one and remember it.
+ RawInstance* ImplicitStaticClosure() const;
+
// Redirection information for a redirecting factory.
bool IsRedirectingFactory() const;
RawType* RedirectionType() const;
@@ -1862,6 +1863,8 @@ class Function : public Object {
void set_owner(const Object& value) const;
RawFunction* implicit_closure_function() const;
void set_implicit_closure_function(const Function& value) const;
+ RawInstance* implicit_static_closure() const;
+ void set_implicit_static_closure(const Instance& closure) const;
void set_num_optional_parameters(intptr_t value) const; // Encoded value.
void set_kind_tag(intptr_t value) const;
void set_data(const Object& value) const;
« 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