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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 2527473002: Fix gen_snapshot product mode build (Closed)
Patch Set: Created 4 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 | « no previous file | runtime/include/dart_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index 80df47dc61312f25348bb84013d92454fc298fa4..4c00a1505927a7803e857f651f1e94c1c376a8d5 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -741,15 +741,11 @@ static void SetupStubNativeResolver(size_t lib_index,
// run after |SetupStubNativeResolversForPrecompilation| because the former
// loads some libraries.
static void SetupStubNativeResolvers() {
- Dart_Handle library_ids = Dart_GetLibraryIds();
- intptr_t library_ids_length;
- Dart_ListLength(library_ids, &library_ids_length);
- for (intptr_t i = 0; i < library_ids_length; i++) {
- Dart_Handle library_id_handle = Dart_ListGetAt(library_ids, i);
- DART_CHECK_VALID(library_id_handle);
- int64_t library_id;
- Dart_IntegerToInt64(library_id_handle, &library_id);
- Dart_Handle library = Dart_GetLibraryFromId(library_id);
+ Dart_Handle libraries = Dart_GetLoadedLibraries();
+ intptr_t libraries_length;
+ Dart_ListLength(libraries, &libraries_length);
+ for (intptr_t i = 0; i < libraries_length; i++) {
+ Dart_Handle library = Dart_ListGetAt(libraries, i);
DART_CHECK_VALID(library);
Dart_NativeEntryResolver old_resolver = NULL;
Dart_GetNativeResolver(library, &old_resolver);
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698