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

Unified Diff: runtime/bin/builtin.h

Issue 9254026: Split dart:builtin into dart:builtin and dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment and add binaries. Created 8 years, 11 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/buffer_list.dart ('k') | runtime/bin/builtin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/bin/buffer_list.dart ('k') | runtime/bin/builtin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698