[VM] Minor cleanup

TEST=ci

Change-Id: I8b7b3533326be7572ccfdb1ea7f81c6f154e9030
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/343341
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
This commit is contained in:
asiva 2023-12-21 22:35:59 +00:00 committed by Commit Queue
parent 94c8d341d7
commit a0c9333ff3
3 changed files with 1 additions and 8 deletions

View file

@ -86,10 +86,6 @@ Utils::CStringUniquePtr DartDevIsolate::TryResolveDartDevSnapshotPath() {
return TryResolveArtifactPath("dartdev.dart.snapshot");
}
Utils::CStringUniquePtr DartDevIsolate::TryResolveDartDevKernelPath() {
return TryResolveArtifactPath("dartdev.dill");
}
void DartDevIsolate::DartDevRunner::Run(
Dart_IsolateGroupCreateCallback create_isolate,
char** packages_file,

View file

@ -46,9 +46,6 @@ class DartDevIsolate {
static bool should_run_dart_dev() { return should_run_dart_dev_; }
// Attempts to find the path of the DartDev kernel file.
static Utils::CStringUniquePtr TryResolveDartDevKernelPath();
// Attempts to find the path of the DartDev snapshot.
static Utils::CStringUniquePtr TryResolveDartDevSnapshotPath();

View file

@ -372,11 +372,11 @@ static Dart_Isolate IsolateSetupHelper(Dart_Isolate isolate,
CHECK_RESULT(result);
}
#if !defined(DART_PRECOMPILED_RUNTIME)
// Disable pausing the DartDev isolate on start and exit.
const char* isolate_name = nullptr;
result = Dart_StringToCString(Dart_DebugName(), &isolate_name);
CHECK_RESULT(result);
#if !defined(DART_PRECOMPILED_RUNTIME)
if (strstr(isolate_name, DART_DEV_ISOLATE_NAME) != nullptr) {
Dart_SetShouldPauseOnStart(false);
Dart_SetShouldPauseOnExit(false);