| 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. |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 | 13 |
| 14 // List of bootstrap native entry points used in the core dart library. | 14 // List of bootstrap native entry points used in the core dart library. |
| 15 #define BOOTSTRAP_NATIVE_LIST(V) \ | 15 #define BOOTSTRAP_NATIVE_LIST(V) \ |
| 16 V(Object_toString, 1) \ | 16 V(Object_toString, 1) \ |
| 17 V(Object_noSuchMethod, 3) \ | 17 V(Object_noSuchMethod, 3) \ |
| 18 V(Integer_bitAndFromInteger, 2) \ | 18 V(Integer_bitAndFromInteger, 2) \ |
| 19 V(Integer_bitOrFromInteger, 2) \ | 19 V(Integer_bitOrFromInteger, 2) \ |
| 20 V(Integer_bitXorFromInteger, 2) \ | 20 V(Integer_bitXorFromInteger, 2) \ |
| 21 V(Integer_addFromInteger, 2) \ | 21 V(Integer_addFromInteger, 2) \ |
| 22 V(Integer_subFromInteger, 2) \ | 22 V(Integer_subFromInteger, 2) \ |
| 23 V(Integer_mulFromInteger, 2) \ | 23 V(Integer_mulFromInteger, 2) \ |
| 24 V(Integer_truncDivFromInteger, 2) \ | 24 V(Integer_truncDivFromInteger, 2) \ |
| 25 V(Integer_moduloFromInteger, 2) \ | 25 V(Integer_moduloFromInteger, 2) \ |
| 26 V(Integer_greaterThanFromInteger, 2) \ | 26 V(Integer_greaterThanFromInteger, 2) \ |
| 27 V(Integer_equalToInteger, 2) \ | 27 V(Integer_equalToInteger, 2) \ |
| 28 V(IsolateMirrorImpl_buildResponse, 1) \ | |
| 29 V(IsolateNatives_start, 2) \ | 28 V(IsolateNatives_start, 2) \ |
| 30 V(ReceivePortImpl_factory, 1) \ | 29 V(ReceivePortImpl_factory, 1) \ |
| 31 V(ReceivePortImpl_closeInternal, 1) \ | 30 V(ReceivePortImpl_closeInternal, 1) \ |
| 32 V(SendPortImpl_sendInternal_, 3) \ | 31 V(SendPortImpl_sendInternal_, 3) \ |
| 33 V(Smi_shlFromInt, 2) \ | 32 V(Smi_shlFromInt, 2) \ |
| 34 V(Smi_shrFromInt, 2) \ | 33 V(Smi_shrFromInt, 2) \ |
| 35 V(Smi_bitNegate, 1) \ | 34 V(Smi_bitNegate, 1) \ |
| 36 V(Mint_bitNegate, 1) \ | 35 V(Mint_bitNegate, 1) \ |
| 37 V(Bigint_bitNegate, 1) \ | 36 V(Bigint_bitNegate, 1) \ |
| 38 V(Double_add, 2) \ | 37 V(Double_add, 2) \ |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 V(ExternalByteArray_getInt64, 2) \ | 144 V(ExternalByteArray_getInt64, 2) \ |
| 146 V(ExternalByteArray_setInt64, 3) \ | 145 V(ExternalByteArray_setInt64, 3) \ |
| 147 V(ExternalByteArray_getUint64, 2) \ | 146 V(ExternalByteArray_getUint64, 2) \ |
| 148 V(ExternalByteArray_setUint64, 3) \ | 147 V(ExternalByteArray_setUint64, 3) \ |
| 149 V(ExternalByteArray_getFloat32, 2) \ | 148 V(ExternalByteArray_getFloat32, 2) \ |
| 150 V(ExternalByteArray_setFloat32, 3) \ | 149 V(ExternalByteArray_setFloat32, 3) \ |
| 151 V(ExternalByteArray_getFloat64, 2) \ | 150 V(ExternalByteArray_getFloat64, 2) \ |
| 152 V(ExternalByteArray_setFloat64, 3) \ | 151 V(ExternalByteArray_setFloat64, 3) \ |
| 153 V(isolate_getPortInternal, 0) \ | 152 V(isolate_getPortInternal, 0) \ |
| 154 V(isolate_spawnFunction, 1) \ | 153 V(isolate_spawnFunction, 1) \ |
| 154 V(Mirrors_processResponse, 3) \ |
| 155 V(Mirrors_send, 3) \ | 155 V(Mirrors_send, 3) \ |
| 156 V(GrowableObjectArray_allocate, 2) \ | 156 V(GrowableObjectArray_allocate, 2) \ |
| 157 V(GrowableObjectArray_getIndexed, 2) \ | 157 V(GrowableObjectArray_getIndexed, 2) \ |
| 158 V(GrowableObjectArray_setIndexed, 3) \ | 158 V(GrowableObjectArray_setIndexed, 3) \ |
| 159 V(GrowableObjectArray_getLength, 1) \ | 159 V(GrowableObjectArray_getLength, 1) \ |
| 160 V(GrowableObjectArray_getCapacity, 1) \ | 160 V(GrowableObjectArray_getCapacity, 1) \ |
| 161 V(GrowableObjectArray_setLength, 2) \ | 161 V(GrowableObjectArray_setLength, 2) \ |
| 162 V(GrowableObjectArray_setData, 2) \ | 162 V(GrowableObjectArray_setData, 2) \ |
| 163 | 163 |
| 164 BOOTSTRAP_NATIVE_LIST(DECLARE_NATIVE_ENTRY) | 164 BOOTSTRAP_NATIVE_LIST(DECLARE_NATIVE_ENTRY) |
| 165 | 165 |
| 166 } // namespace dart | 166 } // namespace dart |
| 167 | 167 |
| 168 #endif // VM_BOOTSTRAP_NATIVES_H_ | 168 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |