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

Unified Diff: runtime/bin/builtin_nolib.cc

Issue 10532123: - Move the Timer interface to the dart:isolate library so that it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/io_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_nolib.cc
===================================================================
--- runtime/bin/builtin_nolib.cc (revision 8985)
+++ runtime/bin/builtin_nolib.cc (working copy)
@@ -28,7 +28,13 @@
void Builtin::SetupLibrary(Dart_Handle library, BuiltinLibraryId id) {
- UNREACHABLE();
+ ASSERT((sizeof(builtin_libraries_) / sizeof(builtin_lib_props)) ==
+ kInvalidLibrary);
+ ASSERT(id >= kBuiltinLibrary && id < kInvalidLibrary);
+ if (builtin_libraries_[id].has_natives_) {
+ // Setup the native resolver for built in library functions.
+ DART_CHECK_VALID(Dart_SetNativeResolver(library, NativeLookup));
+ }
}
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/io_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698