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

Unified Diff: runtime/bin/vmservice_impl.cc

Issue 1151743002: Decrease Dart binary size by 1.7MB (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 | « runtime/bin/vmservice/resources.dart ('k') | runtime/tools/create_resources.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice_impl.cc
diff --git a/runtime/bin/vmservice_impl.cc b/runtime/bin/vmservice_impl.cc
index e830389416c1917a95de66b8e8eec78e6bd92882..d59be6382fadf2af3431e137c1eef05487914bc0 100644
--- a/runtime/bin/vmservice_impl.cc
+++ b/runtime/bin/vmservice_impl.cc
@@ -318,8 +318,9 @@ Dart_Handle VmService::LoadResource(Dart_Handle library,
RETURN_ERROR_HANDLE(result);
// Make invoke call.
- const intptr_t kNumArgs = 2;
- Dart_Handle args[kNumArgs] = { name, data_list };
+ const intptr_t kNumArgs = 3;
+ Dart_Handle compressed = Dart_True();
+ Dart_Handle args[kNumArgs] = { name, data_list, compressed };
result = Dart_Invoke(library, Dart_NewStringFromCString("_addResource"),
kNumArgs, args);
return result;
« no previous file with comments | « runtime/bin/vmservice/resources.dart ('k') | runtime/tools/create_resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698