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

Unified Diff: runtime/bin/builtin_natives.cc

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/builtin_in.cc ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin_natives.cc
diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
index 955a8df89303e958b9b56f28db6c72323cffd54c..1d1db359dd6394a67562d701d3b6307f53712556 100644
--- a/runtime/bin/builtin_natives.cc
+++ b/runtime/bin/builtin_natives.cc
@@ -118,8 +118,14 @@ void FUNCTION_NAME(Exit)(Dart_NativeArguments args) {
}
-void Builtin::SetNativeResolver() {
- Dart_Handle url = Dart_NewString(DartUtils::kBuiltinLibURL);
+void Builtin::SetNativeResolver(Builtin::BuiltinLibraryId id) {
+ Dart_Handle url;
+ if (id == Builtin::kBuiltinLibrary) {
+ url = Dart_NewString(DartUtils::kBuiltinLibURL);
+ } else {
+ ASSERT(id == Builtin::kIOLibrary);
+ url = Dart_NewString(DartUtils::kIOLibURL);
+ }
Dart_Handle builtin_lib = Dart_LookupLibrary(url);
DART_CHECK_VALID(builtin_lib);
// Setup the native resolver for built in library functions.
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/builtin_nolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698