mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
Reapply "Minor adjustment to usage of the ClosureClassRepresentation interface."
This reverts commit 0ee0717cc3
.
BUG=
R=sigmund@google.com
Review-Url: https://codereview.chromium.org/2944073003 .
This commit is contained in:
parent
a4a227e375
commit
d9c6ae3438
|
@ -128,12 +128,11 @@ class RuntimeTypeGenerator {
|
|||
if (!method.isAbstract) {
|
||||
ClosureRepresentationInfo closureData =
|
||||
_closureDataLookup.getClosureRepresentationInfo(method);
|
||||
if (closureData != null) {
|
||||
if (closureData.isClosure && closureData.thisLocal != null) {
|
||||
ClosureFieldElement thisLocal = closureData.thisFieldEntity;
|
||||
if (thisLocal != null) {
|
||||
jsAst.Name thisName = _namer.instanceFieldPropertyName(thisLocal);
|
||||
thisAccess = js('this.#', thisName);
|
||||
}
|
||||
assert(thisLocal != null);
|
||||
jsAst.Name thisName = _namer.instanceFieldPropertyName(thisLocal);
|
||||
thisAccess = js('this.#', thisName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue