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

Unified Diff: runtime/vm/unit_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/vm/service_isolate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.cc
diff --git a/runtime/vm/unit_test.cc b/runtime/vm/unit_test.cc
index 73282c79734bf5bce49e8fffd3e637a46d767c5e..e49a3d3570d9e0d38d25acfebb43fa640d3556e7 100644
--- a/runtime/vm/unit_test.cc
+++ b/runtime/vm/unit_test.cc
@@ -28,7 +28,10 @@ using dart::bin::DartUtils;
namespace dart {
-DECLARE_FLAG(bool, use_dart_frontend);
+DEFINE_FLAG(bool,
+ use_dart_frontend,
+ false,
+ "Parse scripts with Dart-to-Kernel parser");
TestCaseBase* TestCaseBase::first_ = NULL;
TestCaseBase* TestCaseBase::tail_ = NULL;
@@ -65,8 +68,11 @@ void TestCaseBase::RunAll() {
Dart_Isolate TestCase::CreateIsolate(const uint8_t* buffer, const char* name) {
char* err;
+ Dart_IsolateFlags api_flags;
+ Isolate::FlagsInitialize(&api_flags);
+ api_flags.use_dart_frontend = FLAG_use_dart_frontend;
Dart_Isolate isolate =
- Dart_CreateIsolate(name, NULL, buffer, NULL, NULL, NULL, &err);
+ Dart_CreateIsolate(name, NULL, buffer, NULL, &api_flags, NULL, &err);
if (isolate == NULL) {
OS::Print("Creation of isolate failed '%s'\n", err);
free(err);
« no previous file with comments | « runtime/vm/service_isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698