| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 V(GrowableList_setLength, 2) \ | 311 V(GrowableList_setLength, 2) \ |
| 312 V(GrowableList_setData, 2) \ | 312 V(GrowableList_setData, 2) \ |
| 313 V(WeakProperty_new, 2) \ | 313 V(WeakProperty_new, 2) \ |
| 314 V(WeakProperty_getKey, 1) \ | 314 V(WeakProperty_getKey, 1) \ |
| 315 V(WeakProperty_getValue, 1) \ | 315 V(WeakProperty_getValue, 1) \ |
| 316 V(WeakProperty_setValue, 2) \ | 316 V(WeakProperty_setValue, 2) \ |
| 317 V(Uri_isWindowsPlatform, 0) \ | 317 V(Uri_isWindowsPlatform, 0) \ |
| 318 | 318 |
| 319 class BootstrapNatives : public AllStatic { | 319 class BootstrapNatives : public AllStatic { |
| 320 public: | 320 public: |
| 321 static Dart_NativeFunction Lookup(Dart_Handle name, int argument_count); | 321 static Dart_NativeFunction Lookup(Dart_Handle name, |
| 322 int argument_count, |
| 323 bool* auto_setup_scope); |
| 322 | 324 |
| 323 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 325 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
| 324 static void DN_##name(Dart_NativeArguments args); | 326 static void DN_##name(Dart_NativeArguments args); |
| 325 | 327 |
| 326 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 328 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
| 327 | 329 |
| 328 #undef DECLARE_BOOTSTRAP_NATIVE | 330 #undef DECLARE_BOOTSTRAP_NATIVE |
| 329 }; | 331 }; |
| 330 | 332 |
| 331 } // namespace dart | 333 } // namespace dart |
| 332 | 334 |
| 333 #endif // VM_BOOTSTRAP_NATIVES_H_ | 335 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |