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

Unified Diff: runtime/vm/benchmark_test.cc

Issue 2995723002: - Convert all isolate flags to a bit field. (Closed)
Patch Set: Address build error. 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 | « runtime/include/dart_api.h ('k') | runtime/vm/dart.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698