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

Unified Diff: mojo/dart/embedder/builtin.cc

Issue 1027603002: Dart: Removes all but native calls and the handle watcher from the snapshot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Hoist application interface dependence Created 5 years, 9 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 | « mojo/dart/embedder/builtin.h ('k') | mojo/dart/embedder/builtin.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/builtin.cc
diff --git a/mojo/dart/embedder/builtin.cc b/mojo/dart/embedder/builtin.cc
index d51a539d62ac38cb1037b4a89be8f2b8f09f0aa5..96881eb508bbfb14684848bb88fe3f92af31f71f 100644
--- a/mojo/dart/embedder/builtin.cc
+++ b/mojo/dart/embedder/builtin.cc
@@ -36,23 +36,25 @@ static int FindResource(const char* path, const uint8_t** resource) {
}
const char* Builtin::mojo_core_patch_resource_names_[] = {
- "/core/buffer_patch.dart",
- "/core/data_pipe_patch.dart",
- "/core/handle_patch.dart",
- "/core/handle_watcher_patch.dart",
- "/core/message_pipe_patch.dart",
- NULL,
+ "/core/natives_patch.dart",
+ NULL,
};
Builtin::builtin_lib_props Builtin::builtin_libraries_[] = {
- /* { url_, has_natives_, native_symbol_, native_resolver_,
- patch_url_, patch_paths_ } */
- {"dart:mojo.builtin", true, Builtin::NativeSymbol, Builtin::NativeLookup,
- nullptr, nullptr },
- {"dart:mojo.bindings", false, nullptr, nullptr,
- nullptr, nullptr },
- {"dart:mojo.core", true, MojoNativeSymbol, MojoNativeLookup,
- "dart:mojo.core-patch", mojo_core_patch_resource_names_ },
+ /* { url_, has_natives_, native_symbol_, native_resolver_,
+ patch_url_, patch_paths_ } */
+ {"dart:mojo.builtin",
+ true,
+ Builtin::NativeSymbol,
+ Builtin::NativeLookup,
+ nullptr,
+ nullptr},
+ {"dart:mojo.internal",
+ true,
+ MojoNativeSymbol,
+ MojoNativeLookup,
+ "dart:mojo.internal-patch",
+ mojo_core_patch_resource_names_},
};
uint8_t Builtin::snapshot_magic_number[] = {0xf5, 0xf5, 0xdc, 0xdc};
« no previous file with comments | « mojo/dart/embedder/builtin.h ('k') | mojo/dart/embedder/builtin.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698