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

Unified Diff: runtime/vm/benchmark_test.h

Issue 1663963002: - reorganize DartUtils::PrepareForScriptLoading so that it does not have the wait for service load … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-review-comments Created 4 years, 11 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
Index: runtime/vm/benchmark_test.h
diff --git a/runtime/vm/benchmark_test.h b/runtime/vm/benchmark_test.h
index 615965ca5a0c69cfc8735ac59d6f8c1e5745017e..f83f078bb735e8254f779bbece9bf039274b9077 100644
--- a/runtime/vm/benchmark_test.h
+++ b/runtime/vm/benchmark_test.h
@@ -7,6 +7,8 @@
#include "include/dart_api.h"
+#include "bin/isolate_data.h"
+
#include "vm/dart.h"
#include "vm/globals.h"
#include "vm/heap.h"
@@ -82,8 +84,9 @@ class Benchmark {
Isolate* isolate() const { return reinterpret_cast<Isolate*>(isolate_); }
Dart_Isolate CreateIsolate(const uint8_t* buffer) {
+ bin::IsolateData* isolate_data = new bin::IsolateData(NULL, NULL, NULL);
char* err = NULL;
- isolate_ = Dart_CreateIsolate(NULL, NULL, buffer, NULL, NULL, &err);
+ isolate_ = Dart_CreateIsolate(NULL, NULL, buffer, NULL, isolate_data, &err);
EXPECT(isolate_ != NULL);
free(err);
return isolate_;

Powered by Google App Engine
This is Rietveld 408576698