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

Unified Diff: runtime/bin/builtin.cc

Issue 11360121: When building standalone Dart executable, put implementation of dart:io natives in a separate libra… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 1 month 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.h ('k') | runtime/bin/builtin_gen_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.cc
diff --git a/runtime/bin/builtin.cc b/runtime/bin/builtin.cc
index f6d297e9c8435400cc0f83f30b2803f9a150fdfd..f9218dfa06975c0fb829a44ad5c4379cab4f96b9 100644
--- a/runtime/bin/builtin.cc
+++ b/runtime/bin/builtin.cc
@@ -8,7 +8,7 @@
#include "bin/builtin.h"
#include "bin/dartutils.h"
-
+#include "bin/io_natives.h"
Builtin::builtin_lib_props Builtin::builtin_libraries_[] = {
/* { url_, source_, patch_url_, patch_source_, has_natives_ } */
@@ -29,6 +29,15 @@ Dart_Handle Builtin::Source(BuiltinLibraryId id) {
return DartUtils::NewString(builtin_libraries_[id].source_);
}
+/**
+ * Looks up native functions in both libdart_builtin and libdart_io.
+ */
+Dart_NativeFunction Builtin::NativeLookup(Dart_Handle name,
+ int argument_count) {
+ Dart_NativeFunction result = BuiltinNativeLookup(name, argument_count);
+ if (result != NULL) return result;
+ return IONativeLookup(name, argument_count);
+}
void Builtin::SetNativeResolver(BuiltinLibraryId id) {
UNREACHABLE();
« no previous file with comments | « runtime/bin/builtin.h ('k') | runtime/bin/builtin_gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698