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

Unified Diff: runtime/vm/object.h

Issue 1234883005: Implement tear-off closure operator # (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address review comments Created 5 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/lib/symbol_patch.dart ('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 b259aace91f16999c855816517e56f68c8c5f363..bae2bbcd9912bd91ac27cdccf9751c2d001543f1 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2944,6 +2944,12 @@ class Field : public Object {
void EvaluateInitializer() const;
+ // For static fields only. Constructs a closure that gets/sets the
+ // field value.
+ RawInstance* GetterClosure() const;
+ RawInstance* SetterClosure() const;
+ RawInstance* AccessorClosure(bool make_setter) const;
+
// Constructs getter and setter names for fields and vice versa.
static RawString* GetterName(const String& field_name);
static RawString* GetterSymbol(const String& field_name);
« no previous file with comments | « runtime/lib/symbol_patch.dart ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698