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

Unified Diff: runtime/bin/dfe.cc

Issue 3001013002: Pass path to platform kernel binary to kernel-service. (Closed)
Patch Set: Fix comment Created 3 years, 4 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 | 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/dfe.cc
diff --git a/runtime/bin/dfe.cc b/runtime/bin/dfe.cc
index 23a272361cbe3bc93654737ab1fc9591c1e7524c..aacd532a66b63fd7bb2d5e913cc9bfc250f26a30 100644
--- a/runtime/bin/dfe.cc
+++ b/runtime/bin/dfe.cc
@@ -73,7 +73,8 @@ Dart_Handle DFE::ReloadScript(Dart_Isolate isolate, const char* url_string) {
// TODO(asiva): We will have to change this API to pass in a list of files
// that have changed. For now just pass in the main url_string and have it
// recompile the script.
- Dart_KernelCompilationResult kresult = Dart_CompileToKernel(url_string);
+ Dart_KernelCompilationResult kresult =
+ Dart_CompileToKernel(url_string, platform_binary_filename_);
Siggi Cherem (dart-lang) 2017/08/16 23:29:18 Could you add a TODO here that we should be passin
aam 2017/08/17 02:10:51 Done.
if (kresult.status != Dart_KernelCompilationStatus_Ok) {
return Dart_NewApiError(kresult.error);
}
@@ -98,7 +99,8 @@ Dart_Handle DFE::ReloadScript(Dart_Isolate isolate, const char* url_string) {
void* DFE::CompileAndReadScript(const char* script_uri,
char** error,
int* exit_code) {
- Dart_KernelCompilationResult result = Dart_CompileToKernel(script_uri);
+ Dart_KernelCompilationResult result =
+ Dart_CompileToKernel(script_uri, platform_binary_filename_);
switch (result.status) {
case Dart_KernelCompilationStatus_Ok:
return Dart_ReadKernelBinary(result.kernel, result.kernel_size);
« 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