Index: runtime/vm/benchmark_test.cc |
diff --git a/runtime/vm/benchmark_test.cc b/runtime/vm/benchmark_test.cc |
index 3bf9058478edf268b9d3dfa8d0e033127d477804..1161c6799692b598dc4e7cb3337b1de576ce52d4 100644 |
--- a/runtime/vm/benchmark_test.cc |
+++ b/runtime/vm/benchmark_test.cc |
@@ -21,6 +21,8 @@ using dart::bin::File; |
namespace dart { |
+DECLARE_FLAG(bool, use_dart_frontend); |
+ |
Benchmark* Benchmark::first_ = NULL; |
Benchmark* Benchmark::tail_ = NULL; |
const char* Benchmark::executable_ = NULL; |
@@ -92,8 +94,11 @@ void Benchmark::RunAll(const char* executable) { |
Dart_Isolate Benchmark::CreateIsolate(const uint8_t* snapshot_data, |
const uint8_t* snapshot_instructions) { |
char* err = NULL; |
+ Dart_IsolateFlags api_flags; |
+ Isolate::FlagsInitialize(&api_flags); |
+ api_flags.use_dart_frontend = FLAG_use_dart_frontend; |
isolate_ = Dart_CreateIsolate(NULL, NULL, snapshot_data, |
- snapshot_instructions, NULL, NULL, &err); |
+ snapshot_instructions, &api_flags, NULL, &err); |
EXPECT(isolate_ != NULL); |
free(err); |
return isolate_; |