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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/bootstrap.cc ('k') | vm/bootstrap_natives.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef VM_BOOTSTRAP_NATIVES_H_
6 #define VM_BOOTSTRAP_NATIVES_H_ 6 #define VM_BOOTSTRAP_NATIVES_H_
7 7
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 9
10 // bootstrap dart natives used in the core dart library. 10 // bootstrap dart natives used in the core dart library.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 V(GrowableObjectArray_setIndexed, 3) \ 189 V(GrowableObjectArray_setIndexed, 3) \
190 V(GrowableObjectArray_getLength, 1) \ 190 V(GrowableObjectArray_getLength, 1) \
191 V(GrowableObjectArray_getCapacity, 1) \ 191 V(GrowableObjectArray_getCapacity, 1) \
192 V(GrowableObjectArray_setLength, 2) \ 192 V(GrowableObjectArray_setLength, 2) \
193 V(GrowableObjectArray_setData, 2) \ 193 V(GrowableObjectArray_setData, 2) \
194 V(WeakProperty_new, 2) \ 194 V(WeakProperty_new, 2) \
195 V(WeakProperty_getKey, 1) \ 195 V(WeakProperty_getKey, 1) \
196 V(WeakProperty_getValue, 1) \ 196 V(WeakProperty_getValue, 1) \
197 V(WeakProperty_setValue, 2) \ 197 V(WeakProperty_setValue, 2) \
198 198
199 BOOTSTRAP_NATIVE_LIST(DECLARE_NATIVE_ENTRY) 199 class BootstrapNatives {
Ivan Posva 2012/08/30 00:52:39 : public AllStatic
200 public:
201 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count);
202
203 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
204 static void DN_##name(Dart_NativeArguments args);
205
206 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
207
208 #undef DECLARE_BOOTSTRAP_NATIVE
209 };
200 210
201 } // namespace dart 211 } // namespace dart
202 212
203 #endif // VM_BOOTSTRAP_NATIVES_H_ 213 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« 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