Commit a2f785c
[ddc] Update source mapping for static invocations
when they have been rewritten to include hot reload checks. Appears to
fix the issue detected in the dwds test failure.
Issue: dart-lang/webdev#2617.
The new mapping ensures breakpoints applied to the call site in the Dart
source are the call site instead of the the generation check.
Allows the tooling to set a breakpoint on the static method call site,
and then when paused, a step-into will action will advance the program
into the static method.
In the future we will need to reevaluate how we generate code where a
single branch of execution in Dart source produces multiple branches in
JavaScript. I believe right now the tooling will not support creating
breakpoints in both branches even when they both have a mapping to the
same Dart source location.
Change-Id: I1ea0548768d8213dc7eefc332814d3bda7c81535
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/427567
Reviewed-by: Nate Biggs <[email protected]>
Commit-Queue: Nicholas Shahan <[email protected]>
Reviewed-by: Srujan Gaddam <[email protected]>1 parent c2fe957 commit a2f785c
File tree
4 files changed
+71
-13
lines changed- pkg/dev_compiler/lib/src
- js_ast
- kernel
4 files changed
+71
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
1216 | 1223 | | |
1217 | 1224 | | |
1218 | 1225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
757 | 763 | | |
758 | 764 | | |
759 | 765 | | |
| 766 | + | |
760 | 767 | | |
761 | 768 | | |
762 | 769 | | |
763 | 770 | | |
764 | 771 | | |
| 772 | + | |
765 | 773 | | |
766 | 774 | | |
767 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4582 | 4582 | | |
4583 | 4583 | | |
4584 | 4584 | | |
| 4585 | + | |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
| 4592 | + | |
4585 | 4593 | | |
4586 | 4594 | | |
4587 | 4595 | | |
| |||
6795 | 6803 | | |
6796 | 6804 | | |
6797 | 6805 | | |
6798 | | - | |
6799 | | - | |
6800 | | - | |
6801 | | - | |
| 6806 | + | |
| 6807 | + | |
| 6808 | + | |
| 6809 | + | |
| 6810 | + | |
| 6811 | + | |
| 6812 | + | |
6802 | 6813 | | |
6803 | | - | |
| 6814 | + | |
| 6815 | + | |
| 6816 | + | |
| 6817 | + | |
6804 | 6818 | | |
6805 | 6819 | | |
6806 | | - | |
6807 | | - | |
6808 | | - | |
6809 | | - | |
6810 | | - | |
6811 | | - | |
| 6820 | + | |
| 6821 | + | |
| 6822 | + | |
6812 | 6823 | | |
6813 | 6824 | | |
6814 | 6825 | | |
6815 | 6826 | | |
6816 | 6827 | | |
6817 | 6828 | | |
| 6829 | + | |
| 6830 | + | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
6818 | 6838 | | |
6819 | 6839 | | |
6820 | 6840 | | |
| |||
6826 | 6846 | | |
6827 | 6847 | | |
6828 | 6848 | | |
| 6849 | + | |
| 6850 | + | |
| 6851 | + | |
6829 | 6852 | | |
6830 | | - | |
| 6853 | + | |
| 6854 | + | |
| 6855 | + | |
| 6856 | + | |
6831 | 6857 | | |
6832 | 6858 | | |
6833 | 6859 | | |
| |||
6906 | 6932 | | |
6907 | 6933 | | |
6908 | 6934 | | |
6909 | | - | |
| 6935 | + | |
| 6936 | + | |
6910 | 6937 | | |
6911 | 6938 | | |
6912 | 6939 | | |
| |||
0 commit comments