276118d5f0
Previously, the onus was on the BytecodeGenerator to emit Nops in cases where a source position may be overwritten by the next emitted instruction. Instead, change SourcePositions.add to return whether or not the requested mapping would overwrite an existing one. With that, Assembler.emitSourcePosition[ForCall] now emits Nop instructions if needed to ensure that the requested source position is recorded. TEST=pkg/vm_service/test/set_sdk_library_debuggable_test Cq-Include-Trybots: luci.dart.try:vm-dyn-linux-debug-x64-try Change-Id: Ieebef0b59dbee3c21e598acfc45c5b47a7c19543 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/484100 Commit-Queue: Tess Strickland <sstrickl@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
This package contains Dart bytecode compiler.
Status: experimental
NOTE: This package is currently experimental and not published or included in the SDK.
Do not take dependency on this package unless you are prepared for breaking changes and possibly removal of this code at any point in time.