62325f95b4
Refactor Kernel::CollectTokenPositionsFor, but do not try to factorize code for fields and functions, as too many handles would need to be passed around. Bytecode reading creates duplicate script objects requiring scripts to be matched by their url rather than by their raw address when collecting token positions in bytecode. However, url comparison is not yet used, because collecting token positions in the duplicated script 'dart:core/map.dart' (in default mode) causes crashes in kernel reading. Will revisit. Fix service test valid_source locations_test.dart and make sure fields are properly reloaded, except fields injected by fasta. Remove unused argument 'record' of KernelReaderHelper::ReadPosition(). Handle bytecode stub frame in IsAsyncMachinery() tester in debugger. Change-Id: Ifbddcaec00e0696f7de13c5cf1e74380b31d2419 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112402 Commit-Queue: Régis Crelier <regis@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>