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

Unified Diff: runtime/bin/main.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/io_sources.gypi ('k') | runtime/bin/timer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
===================================================================
--- runtime/bin/main.cc (revision 8985)
+++ runtime/bin/main.cc (working copy)
@@ -512,8 +512,10 @@
if (snapshot_buffer != NULL) {
// Setup the native resolver as the snapshot does not carry it.
- Builtin::SetNativeResolver(Builtin::kBuiltinLibrary);
- Builtin::SetNativeResolver(Builtin::kIOLibrary);
+ Builtin::SetupLibrary(Builtin::LoadLibrary(Builtin::kBuiltinLibrary),
+ Builtin::kBuiltinLibrary);
+ Builtin::SetupLibrary(Builtin::LoadLibrary(Builtin::kIOLibrary),
+ Builtin::kIOLibrary);
}
// Set up the library tag handler for this isolate.
@@ -550,6 +552,10 @@
return false;
}
+ // Setup the IO library.
+ Dart_Handle io_lib = Builtin::LoadLibrary(Builtin::kIOLibrary);
+ Builtin::SetupIOLibrary(io_lib);
+
if (package_root != NULL) {
const int kNumArgs = 1;
Dart_Handle dart_args[kNumArgs];
« no previous file with comments | « runtime/bin/io_sources.gypi ('k') | runtime/bin/timer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698