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

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

Issue 419103003: Handle load errors in deferred code (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/vm/bootstrap.cc ('k') | runtime/vm/dart_api_impl.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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 V(LinkedHashMap_toArray, 1) \ 356 V(LinkedHashMap_toArray, 1) \
357 V(LinkedHashMap_getModMark, 2) \ 357 V(LinkedHashMap_getModMark, 2) \
358 V(LinkedHashMap_useInternal, 0) \ 358 V(LinkedHashMap_useInternal, 0) \
359 V(WeakProperty_new, 2) \ 359 V(WeakProperty_new, 2) \
360 V(WeakProperty_getKey, 1) \ 360 V(WeakProperty_getKey, 1) \
361 V(WeakProperty_getValue, 1) \ 361 V(WeakProperty_getValue, 1) \
362 V(WeakProperty_setValue, 2) \ 362 V(WeakProperty_setValue, 2) \
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(UserTag_new, 2) \ 367 V(UserTag_new, 2) \
367 V(UserTag_label, 1) \ 368 V(UserTag_label, 1) \
368 V(UserTag_defaultTag, 0) \ 369 V(UserTag_defaultTag, 0) \
369 V(UserTag_makeCurrent, 1) \ 370 V(UserTag_makeCurrent, 1) \
370 V(Profiler_getCurrentTag, 0) \ 371 V(Profiler_getCurrentTag, 0) \
371 V(ClassID_getID, 1) \ 372 V(ClassID_getID, 1) \
372 373
373 374
374 class BootstrapNatives : public AllStatic { 375 class BootstrapNatives : public AllStatic {
375 public: 376 public:
376 static Dart_NativeFunction Lookup(Dart_Handle name, 377 static Dart_NativeFunction Lookup(Dart_Handle name,
377 int argument_count, 378 int argument_count,
378 bool* auto_setup_scope); 379 bool* auto_setup_scope);
379 380
380 static const uint8_t* Symbol(Dart_NativeFunction* nf); 381 static const uint8_t* Symbol(Dart_NativeFunction* nf);
381 382
382 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \ 383 #define DECLARE_BOOTSTRAP_NATIVE(name, ignored) \
383 static void DN_##name(Dart_NativeArguments args); 384 static void DN_##name(Dart_NativeArguments args);
384 385
385 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE) 386 BOOTSTRAP_NATIVE_LIST(DECLARE_BOOTSTRAP_NATIVE)
386 387
387 #undef DECLARE_BOOTSTRAP_NATIVE 388 #undef DECLARE_BOOTSTRAP_NATIVE
388 }; 389 };
389 390
390 } // namespace dart 391 } // namespace dart
391 392
392 #endif // VM_BOOTSTRAP_NATIVES_H_ 393 #endif // VM_BOOTSTRAP_NATIVES_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698