| Index: runtime/bin/gen_snapshot.cc
|
| diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
|
| index 18a71726487c879d13111400573dd8167f829dff..0e9f1ff53914a2856086e0b72bf15001dcbeab34 100644
|
| --- a/runtime/bin/gen_snapshot.cc
|
| +++ b/runtime/bin/gen_snapshot.cc
|
| @@ -13,6 +13,7 @@
|
|
|
| #include "bin/builtin.h"
|
| #include "bin/dartutils.h"
|
| +#include "bin/dfe.h"
|
| #include "bin/eventhandler.h"
|
| #include "bin/file.h"
|
| #include "bin/loader.h"
|
| @@ -31,6 +32,8 @@
|
| namespace dart {
|
| namespace bin {
|
|
|
| +DFE dfe;
|
| +
|
| // Exit code indicating an API error.
|
| static const int kApiErrorExitCode = 253;
|
| // Exit code indicating a compilation error.
|
| @@ -1570,7 +1573,7 @@ int main(int argc, char** argv) {
|
| const uint8_t* kernel = NULL;
|
| intptr_t kernel_length = 0;
|
| const bool is_kernel_file =
|
| - TryReadKernel(app_script_name, &kernel, &kernel_length);
|
| + dfe.TryReadKernelFile(app_script_name, &kernel, &kernel_length);
|
|
|
| if ((dependencies_filename != NULL) || print_dependencies) {
|
| isolate_data->set_dependencies(new MallocGrowableArray<char*>());
|
|
|