Skip to content

Commit fa45f91

Browse files
zichanggcommit-bot@chromium.org
authored andcommitted
[vm] Switchable calls ignore functions being stepping or having breakpoints
Switchable calls should exclude functions that either are under stepping or have breakpoints Bug: #37747 (comment) Change-Id: I9d71c0ee0b9086b43d9a98bf0719196a081f070d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112147 Commit-Queue: Zichang Guo <[email protected]> Reviewed-by: Siva Annamalai <[email protected]>
1 parent 31cd2bd commit fa45f91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/vm/runtime_entry.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,11 @@ static void TrySwitchInstanceCall(const ICData& ic_data,
11211121
if (caller_function.unoptimized_code() != caller_code.raw()) {
11221122
return;
11231123
}
1124+
#if !defined(PRODUCT)
1125+
// Skip functions that contain breakpoints or when debugger is in single
1126+
// stepping mode.
1127+
if (Debugger::IsDebugging(thread, caller_function)) return;
1128+
#endif
11241129

11251130
intptr_t num_checks = ic_data.NumberOfChecks();
11261131

0 commit comments

Comments
 (0)