[vm,dyn_modules] Fix capturing of 'this' in instance field initializers
TEST=ci (co19/Language/Classes/access_to_this_A01_t02) Change-Id: If08c23cdc2d751e76d63d81f6aad511cd2a31fae Cq-Include-Trybots: luci.dart.try:vm-aot-dyn-linux-debug-x64-try,vm-aot-dyn-linux-product-x64-try,vm-dyn-linux-debug-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/443635 Reviewed-by: Tess Strickland <sstrickl@google.com> Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
committed by
Commit Queue
parent
6abcced30c
commit
610097050c
@@ -936,6 +936,7 @@ class _Allocator extends RecursiveVisitor {
|
||||
_allocateParameter(_currentFrame.receiverVar!, 0);
|
||||
if (_currentFrame.capturedReceiverVar != null) {
|
||||
_allocateVariable(_currentFrame.capturedReceiverVar!);
|
||||
_currentFrame.hasCapturedParameters = true;
|
||||
}
|
||||
}
|
||||
_allocateSpecialVariables();
|
||||
|
||||
Reference in New Issue
Block a user