OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |