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

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

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
« no previous file with comments | « runtime/lib/profiler.dart ('k') | runtime/vm/dart.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 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 V(GrowableList_setData, 2) \ 348 V(GrowableList_setData, 2) \
349 V(Internal_makeListFixedLength, 1) \ 349 V(Internal_makeListFixedLength, 1) \
350 V(WeakProperty_new, 2) \ 350 V(WeakProperty_new, 2) \
351 V(WeakProperty_getKey, 1) \ 351 V(WeakProperty_getKey, 1) \
352 V(WeakProperty_getValue, 1) \ 352 V(WeakProperty_getValue, 1) \
353 V(WeakProperty_setValue, 2) \ 353 V(WeakProperty_setValue, 2) \
354 V(Uri_isWindowsPlatform, 0) \ 354 V(Uri_isWindowsPlatform, 0) \
355 V(LibraryPrefix_load, 1) \ 355 V(LibraryPrefix_load, 1) \
356 V(UserTag_new, 2) \ 356 V(UserTag_new, 2) \
357 V(UserTag_label, 1) \ 357 V(UserTag_label, 1) \
358 V(UserTag_defaultTag, 0) \
358 V(UserTag_makeCurrent, 1) \ 359 V(UserTag_makeCurrent, 1) \
359 V(Profiler_getCurrentTag, 0) \ 360 V(Profiler_getCurrentTag, 0) \
360 V(Profiler_clearCurrentTag, 0) \
361 361
362 362
363 class BootstrapNatives : public AllStatic { 363 class BootstrapNatives : public AllStatic {
364 public: 364 public:
365 static Dart_NativeFunction Lookup(Dart_Handle name, 365 static Dart_NativeFunction Lookup(Dart_Handle name,
366 int argument_count, 366 int argument_count,
367 bool* auto_setup_scope); 367 bool* auto_setup_scope);
368 368
369 static const uint8_t* Symbol(Dart_NativeFunction* nf); 369 static const uint8_t* Symbol(Dart_NativeFunction* nf);
370 370
371 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 371 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
372 static void DN_##name(Dart_NativeArguments args); 372 static void DN_##name(Dart_NativeArguments args);
373 373
374 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 374 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
375 375
376 #undef DECLARE_BOOTSTRAP_NATIVE 376 #undef DECLARE_BOOTSTRAP_NATIVE
377 }; 377 };
378 378
379 } // namespace dart 379 } // namespace dart
380 380
381 #endif // VM_BOOTSTRAP_NATIVES_H_ 381 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/lib/profiler.dart ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698