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

Unified Diff: vm/bootstrap_natives.h

Issue 10874072: Use the return value of vm native methods to set the return value, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: 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 | « vm/bootstrap.cc ('k') | vm/bootstrap_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/bootstrap_natives.h
===================================================================
--- vm/bootstrap_natives.h (revision 11528)
+++ vm/bootstrap_natives.h (working copy)
@@ -196,8 +196,18 @@
V(WeakProperty_getValue, 1) \
V(WeakProperty_setValue, 2) \
-BOOTSTRAP_NATIVE_LIST(DECLARE_NATIVE_ENTRY)
+class BootstrapNatives {
Ivan Posva 2012/08/30 00:52:39 : public AllStatic
+ public:
+ static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count);
+#define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
+ static void DN_##name(Dart_NativeArguments args);
+
+ BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
+
+#undef DECLARE_BOOTSTRAP_NATIVE
+};
+
} // namespace dart
#endif // VM_BOOTSTRAP_NATIVES_H_
« no previous file with comments | « vm/bootstrap.cc ('k') | vm/bootstrap_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698