Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: runtime/vm/bootstrap_natives.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/bootstrap_natives.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 RUNTIME_VM_BOOTSTRAP_NATIVES_H_ 5 #ifndef RUNTIME_VM_BOOTSTRAP_NATIVES_H_
6 #define RUNTIME_VM_BOOTSTRAP_NATIVES_H_ 6 #define RUNTIME_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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 V(VMService_SendIsolateServiceMessage, 2) \ 349 V(VMService_SendIsolateServiceMessage, 2) \
350 V(VMService_SendRootServiceMessage, 1) \ 350 V(VMService_SendRootServiceMessage, 1) \
351 V(VMService_SendObjectRootServiceMessage, 1) \ 351 V(VMService_SendObjectRootServiceMessage, 1) \
352 V(VMService_OnStart, 0) \ 352 V(VMService_OnStart, 0) \
353 V(VMService_OnExit, 0) \ 353 V(VMService_OnExit, 0) \
354 V(VMService_OnServerAddressChange, 1) \ 354 V(VMService_OnServerAddressChange, 1) \
355 V(VMService_ListenStream, 1) \ 355 V(VMService_ListenStream, 1) \
356 V(VMService_CancelStream, 1) \ 356 V(VMService_CancelStream, 1) \
357 V(VMService_RequestAssets, 0) \ 357 V(VMService_RequestAssets, 0) \
358 V(VMService_DecodeAssets, 1) \ 358 V(VMService_DecodeAssets, 1) \
359 V(VMService_spawnUriNotify, 2) \ 359 V(VMService_spawnUriNotify, 2)
360 360
361 // List of bootstrap native entry points used in the dart:mirror library. 361 // List of bootstrap native entry points used in the dart:mirror library.
362 #define MIRRORS_BOOTSTRAP_NATIVE_LIST(V) \ 362 #define MIRRORS_BOOTSTRAP_NATIVE_LIST(V) \
363 V(Mirrors_evalInLibraryWithPrivateKey, 2) \ 363 V(Mirrors_evalInLibraryWithPrivateKey, 2) \
364 V(Mirrors_makeLocalClassMirror, 1) \ 364 V(Mirrors_makeLocalClassMirror, 1) \
365 V(Mirrors_makeLocalTypeMirror, 1) \ 365 V(Mirrors_makeLocalTypeMirror, 1) \
366 V(Mirrors_mangleName, 2) \ 366 V(Mirrors_mangleName, 2) \
367 V(MirrorReference_equals, 2) \ 367 V(MirrorReference_equals, 2) \
368 V(MirrorSystem_libraries, 0) \ 368 V(MirrorSystem_libraries, 0) \
369 V(MirrorSystem_isolate, 0) \ 369 V(MirrorSystem_isolate, 0) \
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 V(FunctionTypeMirror_call_method, 2) \ 401 V(FunctionTypeMirror_call_method, 2) \
402 V(FunctionTypeMirror_parameters, 2) \ 402 V(FunctionTypeMirror_parameters, 2) \
403 V(FunctionTypeMirror_return_type, 2) \ 403 V(FunctionTypeMirror_return_type, 2) \
404 V(MethodMirror_owner, 2) \ 404 V(MethodMirror_owner, 2) \
405 V(MethodMirror_parameters, 2) \ 405 V(MethodMirror_parameters, 2) \
406 V(MethodMirror_return_type, 2) \ 406 V(MethodMirror_return_type, 2) \
407 V(MethodMirror_source, 1) \ 407 V(MethodMirror_source, 1) \
408 V(ParameterMirror_type, 3) \ 408 V(ParameterMirror_type, 3) \
409 V(TypedefMirror_referent, 1) \ 409 V(TypedefMirror_referent, 1) \
410 V(TypedefMirror_declaration, 1) \ 410 V(TypedefMirror_declaration, 1) \
411 V(VariableMirror_type, 2) \ 411 V(VariableMirror_type, 2)
412 412
413 class BootstrapNatives : public AllStatic { 413 class BootstrapNatives : public AllStatic {
414 public: 414 public:
415 static Dart_NativeFunction Lookup(Dart_Handle name, 415 static Dart_NativeFunction Lookup(Dart_Handle name,
416 int argument_count, 416 int argument_count,
417 bool* auto_setup_scope); 417 bool* auto_setup_scope);
418 418
419 static const uint8_t* Symbol(Dart_NativeFunction* nf); 419 static const uint8_t* Symbol(Dart_NativeFunction* nf);
420 420
421 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 421 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
422 static void DN_##name(Dart_NativeArguments args); 422 static void DN_##name(Dart_NativeArguments args);
423 423
424 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 424 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
425 #ifndef PRODUCT 425 #ifndef PRODUCT
426 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 426 MIRRORS_BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
427 #endif 427 #endif
428 428
429 #undef DECLARE_BOOTSTRAP_NATIVE 429 #undef DECLARE_BOOTSTRAP_NATIVE
430 }; 430 };
431 431
432 } // namespace dart 432 } // namespace dart
433 433
434 #endif // RUNTIME_VM_BOOTSTRAP_NATIVES_H_ 434 #endif // RUNTIME_VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/bootstrap_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698