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

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

Issue 473673004: Avoid UTF-8 decoding in num.toString. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/object.cc ('k') | runtime/vm/object.h » ('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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 V(Uri_isWindowsPlatform, 0) \ 363 V(Uri_isWindowsPlatform, 0) \
364 V(LibraryPrefix_load, 1) \ 364 V(LibraryPrefix_load, 1) \
365 V(LibraryPrefix_invalidateDependentCode, 1) \ 365 V(LibraryPrefix_invalidateDependentCode, 1) \
366 V(LibraryPrefix_loadError, 1) \ 366 V(LibraryPrefix_loadError, 1) \
367 V(UserTag_new, 2) \ 367 V(UserTag_new, 2) \
368 V(UserTag_label, 1) \ 368 V(UserTag_label, 1) \
369 V(UserTag_defaultTag, 0) \ 369 V(UserTag_defaultTag, 0) \
370 V(UserTag_makeCurrent, 1) \ 370 V(UserTag_makeCurrent, 1) \
371 V(Profiler_getCurrentTag, 0) \ 371 V(Profiler_getCurrentTag, 0) \
372 V(ClassID_getID, 1) \ 372 V(ClassID_getID, 1) \
373 V(Num_toString, 1) \
373 374
374 375
375 class BootstrapNatives : public AllStatic { 376 class BootstrapNatives : public AllStatic {
376 public: 377 public:
377 static Dart_NativeFunction Lookup(Dart_Handle name, 378 static Dart_NativeFunction Lookup(Dart_Handle name,
378 int argument_count, 379 int argument_count,
379 bool* auto_setup_scope); 380 bool* auto_setup_scope);
380 381
381 static const uint8_t* Symbol(Dart_NativeFunction* nf); 382 static const uint8_t* Symbol(Dart_NativeFunction* nf);
382 383
383 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 384 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
384 static void DN_##name(Dart_NativeArguments args); 385 static void DN_##name(Dart_NativeArguments args);
385 386
386 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 387 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
387 388
388 #undef DECLARE_BOOTSTRAP_NATIVE 389 #undef DECLARE_BOOTSTRAP_NATIVE
389 }; 390 };
390 391
391 } // namespace dart 392 } // namespace dart
392 393
393 #endif // VM_BOOTSTRAP_NATIVES_H_ 394 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698