From 255bbb2a550ce94612100dce6d1713ba94fdce13 Mon Sep 17 00:00:00 2001 From: Siva Date: Tue, 3 Oct 2017 16:49:43 -0700 Subject: [PATCH] - Remove call to DartDebugger::InitDebugger in InitDartVM (flutter/engine#4167) - Remove linking of dart_debugger.cc as this is not used (all debugging is done using the service API, this debugger implementation uses the deprecated dart debugger API) --- engine/src/flutter/runtime/BUILD.gn | 4 ---- engine/src/flutter/runtime/dart_controller.cc | 1 - engine/src/flutter/runtime/dart_init.cc | 9 --------- 3 files changed, 14 deletions(-) diff --git a/engine/src/flutter/runtime/BUILD.gn b/engine/src/flutter/runtime/BUILD.gn index 1adabf0111..86e19b465c 100644 --- a/engine/src/flutter/runtime/BUILD.gn +++ b/engine/src/flutter/runtime/BUILD.gn @@ -95,10 +95,6 @@ source_set("runtime") { defines += [ "EMBED_TEST_FONT_DATA=1" ] } - if (flutter_runtime_mode != "release") { - deps += [ "//topaz/lib/tonic/debugger" ] - } - # In AOT mode, precompiled snapshots contain the instruction buffer. # Generation of the same requires all application specific script code to be # specified up front. In such cases, there can be no generic snapshot. diff --git a/engine/src/flutter/runtime/dart_controller.cc b/engine/src/flutter/runtime/dart_controller.cc index b9ece77ea8..93eaa80f30 100644 --- a/engine/src/flutter/runtime/dart_controller.cc +++ b/engine/src/flutter/runtime/dart_controller.cc @@ -22,7 +22,6 @@ #include "lib/tonic/dart_message_handler.h" #include "lib/tonic/dart_state.h" #include "lib/tonic/dart_wrappable.h" -#include "lib/tonic/debugger/dart_debugger.h" #include "lib/tonic/file_loader/file_loader.h" #include "lib/tonic/logging/dart_error.h" #include "lib/tonic/logging/dart_invoke.h" diff --git a/engine/src/flutter/runtime/dart_init.cc b/engine/src/flutter/runtime/dart_init.cc index 5cbed3ed28..6d8ec5654c 100644 --- a/engine/src/flutter/runtime/dart_init.cc +++ b/engine/src/flutter/runtime/dart_init.cc @@ -36,7 +36,6 @@ #include "lib/tonic/dart_state.h" #include "lib/tonic/dart_sticky_error.h" #include "lib/tonic/dart_wrappable.h" -#include "lib/tonic/debugger/dart_debugger.h" #include "lib/tonic/file_loader/file_loader.h" #include "lib/tonic/logging/dart_error.h" #include "lib/tonic/logging/dart_invoke.h" @@ -538,14 +537,6 @@ void InitDartVM(const uint8_t* vm_snapshot_data, FXL_CHECK(Dart_SetVMFlags(args.size(), args.data())); -#if FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_RELEASE - if (!IsRunningPrecompiledCode()) { - TRACE_EVENT0("flutter", "DartDebugger::InitDebugger"); - // This should be called before calling Dart_Initialize. - tonic::DartDebugger::InitDebugger(); - } -#endif - DartUI::InitForGlobal(); // Setup embedder tracing hooks. To avoid data races, it is recommended that