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

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: address review comments 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
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

Powered by Google App Engine
This is Rietveld 408576698