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

Unified Diff: runtime/lib/weak_property.cc

Issue 10861041: Provide an Expando implementation for the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: make WeakProperty private 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/lib/lib_sources.gypi ('k') | runtime/lib/weak_property.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/weak_property.cc
diff --git a/runtime/lib/weak_property.cc b/runtime/lib/weak_property.cc
index 273cef8656fe4d15fea8d6aa68c036038fcf0a9c..268461b77eb8e01e7ee53d6b4652de2ce7623ab6 100644
--- a/runtime/lib/weak_property.cc
+++ b/runtime/lib/weak_property.cc
@@ -33,4 +33,11 @@ DEFINE_NATIVE_ENTRY(WeakProperty_getValue, 1) {
arguments->SetReturn(value);
}
+
+DEFINE_NATIVE_ENTRY(WeakProperty_setValue, 2) {
+ GET_NATIVE_ARGUMENT(WeakProperty, weak_property, arguments->At(0));
+ GET_NATIVE_ARGUMENT(Instance, value, arguments->At(1));
+ weak_property.set_value(value);
+}
+
} // namespace dart
« no previous file with comments | « runtime/lib/lib_sources.gypi ('k') | runtime/lib/weak_property.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698