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

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

Issue 227433004: Add runtime and native entry tags (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months 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 | Annotate | Revision Log
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 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 V(Uri_isWindowsPlatform, 0) \ 349 V(Uri_isWindowsPlatform, 0) \
350 V(LibraryPrefix_load, 1) \ 350 V(LibraryPrefix_load, 1) \
351 351
352 352
353 class BootstrapNatives : public AllStatic { 353 class BootstrapNatives : public AllStatic {
354 public: 354 public:
355 static Dart_NativeFunction Lookup(Dart_Handle name, 355 static Dart_NativeFunction Lookup(Dart_Handle name,
356 int argument_count, 356 int argument_count,
357 bool* auto_setup_scope); 357 bool* auto_setup_scope);
358 358
359 static const char* ReverseLookup(Dart_NativeFunction* nf);
360
359 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 361 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
360 static void DN_##name(Dart_NativeArguments args); 362 static void DN_##name(Dart_NativeArguments args);
361 363
362 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 364 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
363 365
364 #undef DECLARE_BOOTSTRAP_NATIVE 366 #undef DECLARE_BOOTSTRAP_NATIVE
365 }; 367 };
366 368
367 } // namespace dart 369 } // namespace dart
368 370
369 #endif // VM_BOOTSTRAP_NATIVES_H_ 371 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698