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

Unified Diff: runtime/vm/unit_test.h

Issue 2993013002: Introduce IKG into kernel-service to support incremental compilation. (Closed)
Patch Set: Add TODO to add assert that isolate exists. 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/kernel_isolate.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.h
diff --git a/runtime/vm/unit_test.h b/runtime/vm/unit_test.h
index 16c6303af50c29c638df2768c38e404e5fbb2a5f..1e2889b837af8827c740c1d9cab6ad2a4742a744 100644
--- a/runtime/vm/unit_test.h
+++ b/runtime/vm/unit_test.h
@@ -289,11 +289,23 @@ class TestCase : TestCaseBase {
static char* CompileTestScriptWithDFE(const char* url,
const char* source,
- void** kernel_pgm);
+ void** kernel_pgm,
+ bool incrementally = false);
+ static char* CompileTestScriptWithDFE(const char* url,
+ int sourcefiles_count,
+ Dart_SourceFile sourcefiles[],
+ void** kernel_pgm,
+ bool incrementally = false);
static Dart_Handle LoadTestScript(const char* script,
Dart_NativeEntryResolver resolver,
const char* lib_uri = USER_TEST_URI,
bool finalize = true);
+ static Dart_Handle LoadTestScriptWithDFE(
+ int sourcefiles_count,
+ Dart_SourceFile sourcefiles[],
+ Dart_NativeEntryResolver resolver = NULL,
+ bool finalize = true,
+ bool incrementally = false);
static Dart_Handle LoadCoreTestScript(const char* script,
Dart_NativeEntryResolver resolver);
static Dart_Handle lib();
@@ -314,6 +326,8 @@ class TestCase : TestCaseBase {
// Sets |script| to be the source used at next reload.
static void SetReloadTestScript(const char* script);
+ static void SetReloadTestKernel(const void* kernel);
+
// Initiates the reload.
static Dart_Handle TriggerReload();
// Gets the result of a reload.
@@ -321,6 +335,7 @@ class TestCase : TestCaseBase {
// Helper function which reloads the current isolate using |script|.
static Dart_Handle ReloadTestScript(const char* script);
+ static Dart_Handle ReloadTestKernel(const void* kernel);
static void AddTestLib(const char* url, const char* source);
static const char* GetTestLib(const char* url);
« no previous file with comments | « runtime/vm/kernel_isolate.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698