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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 V(MathNatives_random, 0) \ | 91 V(MathNatives_random, 0) \ |
92 V(MathNatives_parseInt, 1) \ | 92 V(MathNatives_parseInt, 1) \ |
93 V(MathNatives_parseDouble, 1) \ | 93 V(MathNatives_parseDouble, 1) \ |
94 V(DateNatives_currentTimeMillis, 0) \ | 94 V(DateNatives_currentTimeMillis, 0) \ |
95 V(DateNatives_timeZoneName, 1) \ | 95 V(DateNatives_timeZoneName, 1) \ |
96 V(DateNatives_timeZoneOffsetInSeconds, 1) \ | 96 V(DateNatives_timeZoneOffsetInSeconds, 1) \ |
97 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \ | 97 V(DateNatives_localTimeZoneAdjustmentInSeconds, 0) \ |
98 V(AssertionError_throwNew, 2) \ | 98 V(AssertionError_throwNew, 2) \ |
99 V(TypeError_throwNew, 5) \ | 99 V(TypeError_throwNew, 5) \ |
100 V(FallThroughError_throwNew, 1) \ | 100 V(FallThroughError_throwNew, 1) \ |
| 101 V(AbstractClassInstantiationError_throwNew, 2) \ |
101 V(StaticResolutionException_throwNew, 1) \ | 102 V(StaticResolutionException_throwNew, 1) \ |
102 V(Stopwatch_now, 0) \ | 103 V(Stopwatch_now, 0) \ |
103 V(Stopwatch_frequency, 0) \ | 104 V(Stopwatch_frequency, 0) \ |
104 V(ByteArray_getLength, 1) \ | 105 V(ByteArray_getLength, 1) \ |
105 V(ByteArray_getInt8, 2) \ | 106 V(ByteArray_getInt8, 2) \ |
106 V(ByteArray_setInt8, 3) \ | 107 V(ByteArray_setInt8, 3) \ |
107 V(ByteArray_getUint8, 2) \ | 108 V(ByteArray_getUint8, 2) \ |
108 V(ByteArray_setUint8, 3) \ | 109 V(ByteArray_setUint8, 3) \ |
109 V(ByteArray_getInt16, 2) \ | 110 V(ByteArray_getInt16, 2) \ |
110 V(ByteArray_setInt16, 3) \ | 111 V(ByteArray_setInt16, 3) \ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 V(GrowableObjectArray_setData, 2) \ | 194 V(GrowableObjectArray_setData, 2) \ |
194 V(WeakProperty_new, 2) \ | 195 V(WeakProperty_new, 2) \ |
195 V(WeakProperty_getKey, 1) \ | 196 V(WeakProperty_getKey, 1) \ |
196 V(WeakProperty_getValue, 1) \ | 197 V(WeakProperty_getValue, 1) \ |
197 V(WeakProperty_setValue, 2) \ | 198 V(WeakProperty_setValue, 2) \ |
198 | 199 |
199 class BootstrapNatives : public AllStatic { | 200 class BootstrapNatives : public AllStatic { |
200 public: | 201 public: |
201 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 202 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); |
202 | 203 |
203 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 204 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
204 static void DN_##name(Dart_NativeArguments args); | 205 static void DN_##name(Dart_NativeArguments args); |
205 | 206 |
206 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 207 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
207 | 208 |
208 #undef DECLARE_BOOTSTRAP_NATIVE | 209 #undef DECLARE_BOOTSTRAP_NATIVE |
209 }; | 210 }; |
210 | 211 |
211 } // namespace dart | 212 } // namespace dart |
212 | 213 |
213 #endif // VM_BOOTSTRAP_NATIVES_H_ | 214 #endif // VM_BOOTSTRAP_NATIVES_H_ |
OLD | NEW |