Chromium Code Reviews| Index: runtime/bin/main.cc |
| =================================================================== |
| --- runtime/bin/main.cc (revision 8601) |
| +++ runtime/bin/main.cc (working copy) |
| @@ -505,8 +505,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); |
|
siva
2012/06/13 17:05:23
I would prefer if we did a Dart_LookupLibrary here
Ivan Posva
2012/06/21 16:17:06
Agreed, but this needs a whole restructuring of th
|
| } |
| // Set up the library tag handler for this isolate. |
| @@ -543,6 +545,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]; |