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

Unified Diff: bin/gen_snapshot.cc

Issue 9630004: - Pass Dart_Null() instead of an empty array for unused import maps. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/gen_snapshot.cc
===================================================================
--- bin/gen_snapshot.cc (revision 5138)
+++ bin/gen_snapshot.cc (working copy)
@@ -274,12 +274,11 @@
} else {
// Load a dummy script as the script to setup the tag handler.
Dart_Handle empty_string = Dart_NewString("");
- Dart_Handle import_map = Dart_NewList(0);
- Dart_Handle lib = Dart_LoadScript(empty_string,
+ library = Dart_LoadScript(empty_string,
empty_string,
BuiltinLibraryTagHandler,
- import_map);
- USE(lib);
+ Dart_Null());
+ VerifyLoaded(library);
// This is a generic dart snapshot which needs builtin library setup.
library = LoadGenericSnapshotCreationScript(Builtin::kBuiltinLibrary);
VerifyLoaded(library);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698