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

Unified Diff: runtime/vm/debugger.cc

Issue 2774233003: Cleanups needed for async step-out (Closed)
Patch Set: Created 3 years, 9 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/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index bf3acd3ad5e839e6c4fea426cbeaf52b29994c3b..7d3eb9fdaa28ab17486a1fd127490c7f52c4712c 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -1591,37 +1591,6 @@ void Debugger::Shutdown() {
void Debugger::OnIsolateRunnable() {
- if (!FLAG_async_debugger_stepping) {
- // We don't have async debugger stepping enabled.
- return;
- }
- Thread::EnterIsolate(isolate_);
- Thread* thread = Thread::Current();
- ASSERT(thread != NULL);
- {
- StackZone zone(thread);
- HandleScope handle_scope(thread);
-
- const Library& async_lib =
- Library::Handle(zone.GetZone(), Library::AsyncLibrary());
- // Grab the _AsyncStarStreamController class.
- const Class& controller_class = Class::Handle(
- zone.GetZone(), async_lib.LookupClassAllowPrivate(
- Symbols::_AsyncStarStreamController()));
- const Array& functions =
- Array::Handle(zone.GetZone(), controller_class.functions());
- Function& function = Function::Handle(zone.GetZone());
- // Mark all functions as not debuggable or inlinable.
- for (intptr_t i = 0; i < functions.Length(); i++) {
- function ^= functions.At(i);
- if (function.IsNull()) {
- break;
- }
- function.set_is_debuggable(false);
- function.set_is_inlinable(false);
- }
- }
- Thread::ExitIsolate();
}

Powered by Google App Engine
This is Rietveld 408576698