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

Unified Diff: runtime/vm/object.h

Issue 10834397: Expose the WeakProperty type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add missing files Created 8 years, 4 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/bootstrap_natives.h ('k') | no next file » | 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 06ca870d29de3b34f027ea843eb0f1e56724072b..f93789ef211db075fb7af86f1a4905eb4ac70758 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5416,7 +5416,7 @@ class WeakProperty : public Instance {
return raw_ptr()->key_;
}
- void set_key(const Object& key) {
+ void set_key(const Object& key) const {
StorePointer(&raw_ptr()->key_, key.raw());
}
@@ -5424,7 +5424,7 @@ class WeakProperty : public Instance {
return raw_ptr()->value_;
}
- void set_value(const Object& value) {
+ void set_value(const Object& value) const {
StorePointer(&raw_ptr()->value_, value.raw());
}
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698