Chromium Code Reviews| 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); |