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

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: Fix SDK dir for SDK mojoms in Modular 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
Index: mojo/dart/embedder/builtin.cc
diff --git a/mojo/dart/embedder/builtin.cc b/mojo/dart/embedder/builtin.cc
index d51a539d62ac38cb1037b4a89be8f2b8f09f0aa5..df0bbad962a22db2a73fb4decffc4a8965791e57 100644
--- a/mojo/dart/embedder/builtin.cc
+++ b/mojo/dart/embedder/builtin.cc
@@ -36,11 +36,7 @@ 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",
+ "/core/natives_patch.dart",
NULL,
};
@@ -49,10 +45,8 @@ Builtin::builtin_lib_props Builtin::builtin_libraries_[] = {
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_ },
+ {"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};

Powered by Google App Engine
This is Rietveld 408576698