Chromium Code Reviews| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 329 V(TypedefMirror_referent, 1) \ | 329 V(TypedefMirror_referent, 1) \ |
| 330 V(TypedefMirror_declaration, 1) \ | 330 V(TypedefMirror_declaration, 1) \ |
| 331 V(VariableMirror_type, 2) \ | 331 V(VariableMirror_type, 2) \ |
| 332 V(GrowableList_allocate, 2) \ | 332 V(GrowableList_allocate, 2) \ |
| 333 V(GrowableList_getIndexed, 2) \ | 333 V(GrowableList_getIndexed, 2) \ |
| 334 V(GrowableList_setIndexed, 3) \ | 334 V(GrowableList_setIndexed, 3) \ |
| 335 V(GrowableList_getLength, 1) \ | 335 V(GrowableList_getLength, 1) \ |
| 336 V(GrowableList_getCapacity, 1) \ | 336 V(GrowableList_getCapacity, 1) \ |
| 337 V(GrowableList_setLength, 2) \ | 337 V(GrowableList_setLength, 2) \ |
| 338 V(GrowableList_setData, 2) \ | 338 V(GrowableList_setData, 2) \ |
| 339 V(GrowableList_toFixedLength, 1) \ | |
|
Ivan Posva
2014/02/06 16:57:00
The native is not on the class GrowableList, maybe
Lasse Reichstein Nielsen
2014/02/07 12:55:25
I don't intend to make the method public. It behav
| |
| 339 V(WeakProperty_new, 2) \ | 340 V(WeakProperty_new, 2) \ |
| 340 V(WeakProperty_getKey, 1) \ | 341 V(WeakProperty_getKey, 1) \ |
| 341 V(WeakProperty_getValue, 1) \ | 342 V(WeakProperty_getValue, 1) \ |
| 342 V(WeakProperty_setValue, 2) \ | 343 V(WeakProperty_setValue, 2) \ |
| 343 V(Uri_isWindowsPlatform, 0) \ | 344 V(Uri_isWindowsPlatform, 0) \ |
| 344 | 345 |
| 345 class BootstrapNatives : public AllStatic { | 346 class BootstrapNatives : public AllStatic { |
| 346 public: | 347 public: |
| 347 static Dart_NativeFunction Lookup(Dart_Handle name, | 348 static Dart_NativeFunction Lookup(Dart_Handle name, |
| 348 int argument_count, | 349 int argument_count, |
| 349 bool* auto_setup_scope); | 350 bool* auto_setup_scope); |
| 350 | 351 |
| 351 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ | 352 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ |
| 352 static void DN_##name(Dart_NativeArguments args); | 353 static void DN_##name(Dart_NativeArguments args); |
| 353 | 354 |
| 354 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) | 355 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) |
| 355 | 356 |
| 356 #undef DECLARE_BOOTSTRAP_NATIVE | 357 #undef DECLARE_BOOTSTRAP_NATIVE |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 } // namespace dart | 360 } // namespace dart |
| 360 | 361 |
| 361 #endif // VM_BOOTSTRAP_NATIVES_H_ | 362 #endif // VM_BOOTSTRAP_NATIVES_H_ |
| OLD | NEW |