Index: runtime/bin/builtin.h |
diff --git a/runtime/bin/builtin.h b/runtime/bin/builtin.h |
index 32a713bffc1d357958d54f55498809045a94952d..b0a47cb6265ca67307b089f9b07adb1ec03e4155 100644 |
--- a/runtime/bin/builtin.h |
+++ b/runtime/bin/builtin.h |
@@ -21,17 +21,24 @@ |
class Builtin { |
public: |
- static Dart_Handle Source(); |
- static void SetupLibrary(Dart_Handle builtin_lib); |
- static void ImportLibrary(Dart_Handle library); |
- static void SetNativeResolver(); |
+ enum BuiltinLibraryId { |
+ kBuiltinLibrary, |
+ kIOLibrary |
+ }; |
+ |
+ static Dart_Handle Source(BuiltinLibraryId id); |
+ static void SetupLibrary(Dart_Handle library, BuiltinLibraryId id); |
+ static Dart_Handle LoadLibrary(BuiltinLibraryId id); |
+ static void ImportLibrary(Dart_Handle library, BuiltinLibraryId id); |
+ static void SetNativeResolver(BuiltinLibraryId id); |
static void PrintString(FILE* out, Dart_Handle object); |
private: |
static Dart_NativeFunction NativeLookup(Dart_Handle name, |
int argument_count); |
- static const char Builtin_source_[]; |
+ static const char builtin_source_[]; |
+ static const char io_source_[]; |
DISALLOW_ALLOCATION(); |
DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); |